From: Renlin Li <renlin.li@foss.arm.com>
To: Ramana Radhakrishnan <ramana.gcc@googlemail.com>
Cc: Jeff Law <law@redhat.com>,
bergner@linux.ibm.com, Vladimir Makarov <vmakarov@redhat.com>,
Christophe Lyon <christophe.lyon@linaro.org>,
gcc-patches <gcc-patches@gcc.gnu.org>,
Segher Boessenkool <segher@kernel.crashing.org>,
Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>,
Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Subject: Re: [PATCH 2/2 v3][IRA,LRA] Fix PR86939, IRA incorrectly creates an interference between a pseudo register and a hard register
Date: Tue, 06 Nov 2018 12:23:00 -0000 [thread overview]
Message-ID: <a0bc0abf-3b83-5842-2d67-560da5ef1def@foss.arm.com> (raw)
In-Reply-To: <CAJA7tRa_ECu=LoFzEbKbHYOYv2YQ-iQxJpWXL0y1h-Q-Eqyeeg@mail.gmail.com>
Hi Ramana,
On 11/06/2018 10:57 AM, Ramana Radhakrishnan wrote:
> On Tue, Nov 6, 2018 at 10:52 AM Renlin Li <renlin.li@foss.arm.com> wrote:
>>
>> Hi Jeff & Peter,
>>
>> On 11/05/2018 07:41 PM, Jeff Law wrote:
>>> On 11/5/18 12:36 PM, Peter Bergner wrote:
>>>> On 11/5/18 1:20 PM, Jeff Law wrote:
>>>>> On 11/1/18 4:07 PM, Peter Bergner wrote:
>>>>>> On 11/1/18 1:50 PM, Renlin Li wrote:
>>>>>>> Is there any update on this issues?
>>>>>>> arm-none-linux-gnueabihf native toolchain has been mis-compiled for a while.
>>>>>>
>>>>>> From the analysis I've done, my commit is just exposing latent issues
>>>>>> in LRA. Can you try the patch I submitted here to see if it helps?
>>>>>>
>>>>>> https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01757.html
>>>>>>
>>>>>> It survives on powerpc64le-linux, x86_64-linux and s390x-linux.
>>>>>> Jeff threw it on his testers and said he saw an arm issue and was
>>>>>> trying to come up with a test case for me to debug.
>>>>> So I don't think the ARM issues are related to your patch, they may have
>>>>> been related the combiner changes that went in around the same time.
>> Yes, there are issues related to the combiner changes.
>
> But didn't the combiner changes come *after* these patches ? So IIUC,
> Renlin has been trying to get these fixed *without* the combine
> patches but just with your patch applied on top of the revision where
> the problem started showing up .
>
> Can you confirm that Renlin ?
I just did a bootstrap again with everything up to r264897 which is Oct 6.
it produce the ICE I mentioned on the PR87899.
The first combiner patch on Oct 22.
Regards,
Renlin
>
>
> Ramana
>>
>> But the IRA/LRA change dose cause the arm-none-linux-gnueabihf bootstrap native toolchain mis-compiled.
>> And the new patch seems not fix this problem.
>>
>> I am trying to extract a test case, but it is a little bit hard as the toolchain itself is mis-compiled.
>> And it ICEs when compile test case with it.
>>
>> I created a bugzilla ticket for this, PR87899.
>>
>> ./gcc/cc1 ~/gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c -O3
>> test main
>> Analyzing compilation unit
>> Performing interprocedural optimizations
>> <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes> <targetclone> <free-fnsummary> <increase_alignment>Streaming LTO
>> <whole-program> <profile_estimate> <icf> <devirt> <cp> <fnsummary> <inline> <pure-const> <free-fnsummary> <static-var> <single-use>
>> <comdats>Assembling functions:
>> <materialize-all-clones> testduring GIMPLE pass: ldist
>>
>> gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c: In function âtestâ:
>> gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c:9:1: internal compiler error: Segmentation fault
>> 9 | test (void)
>> | ^~~~
>> 0x5c3a37 crash_signal
>> ../../gcc/gcc/toplev.c:325
>> 0x63ef6b inchash::hash::add(void const*, unsigned int)
>> ../../gcc/gcc/inchash.h:100
>> 0x63ef6b inchash::hash::add_ptr(void const*)
>> ../../gcc/gcc/inchash.h:94
>> 0x63ef6b ddr_hasher::hash(data_dependence_relation const*)
>> ../../gcc/gcc/tree-loop-distribution.c:143
>> 0x63ef6b hash_table<ddr_hasher, xcallocator>::find_slot(data_dependence_relation* const&, insert_option)
>> ../../gcc/gcc/hash-table.h:414
>> 0x63ef6b get_data_dependence
>> ../../gcc/gcc/tree-loop-distribution.c:1184
>> 0x63f2bd data_dep_in_cycle_p
>> ../../gcc/gcc/tree-loop-distribution.c:1210
>> 0x63f2bd update_type_for_merge
>> ../../gcc/gcc/tree-loop-distribution.c:1255
>> 0x64064b build_rdg_partition_for_vertex
>> ../../gcc/gcc/tree-loop-distribution.c:1302
>> 0x64064b rdg_build_partitions
>> ../../gcc/gcc/tree-loop-distribution.c:1754
>> 0x64064b distribute_loop
>> ../../gcc/gcc/tree-loop-distribution.c:2795
>> 0x642299 execute
>> ../../gcc/gcc/tree-loop-distribution.c:3133
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> Please include the complete backtrace with any bug report.
>> See <https://gcc.gnu.org/bugs/> for instructions.
>>
>>
>>
>> Regards
>> Renlin
>>
>>
>>
>>>>>
>>>>> At this point your patch appears to be DTRT across the board. The only
>>>>> fallout is the bogus s390 asm it caught in the kernel.
>>>>
>>>> Cool. I will note that I contacted the s390 kernel guys and gave them a
>>>> fix to their broken constraints in that asm and they are going to fix it.
>>> Sounds good. I've got a hack in my tester to "fix" that bogus asm until
>>> the kernel folks do it right.
>>>
>>>
>>>>
>>>> Is the above an approval to commit the patch mentioned above or do you
>>>> still want to wait until the ARM issues are fully resolved?
>>> I think knowing the patch addresses all the known issues related to the
>>> earlier IRA/LRA change unblocks the review step. I don't think we need
>>> to wait for the other ARM issues to be resolved -- they seem to be
>>> unrelated to the IRA/LRA changes.
>>>
>>> jeff
>>>
next prev parent reply other threads:[~2018-11-06 12:23 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 21:14 [PATCH 0/2][IRA,LRA] " Peter Bergner
2018-09-26 21:16 ` [PATCH 1/2][IRA,LRA] " Peter Bergner
2018-09-26 21:36 ` [PATCH 2/2][IRA,LRA] " Peter Bergner
2018-09-28 21:45 ` [PATCH 0/2][IRA,LRA] " Vladimir Makarov
2018-09-30 20:28 ` Peter Bergner
2018-10-01 0:57 ` H.J. Lu
2018-10-01 1:18 ` Peter Bergner
2018-10-01 12:46 ` H.J. Lu
2018-10-01 12:51 ` H.J. Lu
2018-10-01 13:16 ` H.J. Lu
2018-10-01 14:05 ` Peter Bergner
2018-10-02 4:08 ` Peter Bergner
2018-10-02 14:50 ` Jeff Law
2018-10-02 15:07 ` Peter Bergner
2018-10-02 15:37 ` H.J. Lu
2018-10-02 15:55 ` Peter Bergner
2018-10-02 17:14 ` H.J. Lu
2018-10-02 21:53 ` Peter Bergner
2018-10-02 22:28 ` H.J. Lu
2018-10-03 0:35 ` Peter Bergner
2018-10-03 2:23 ` H.J. Lu
2018-10-03 2:46 ` Peter Bergner
2018-10-03 14:43 ` [PATCH 2/2 v3][IRA,LRA] " Peter Bergner
2018-10-04 22:18 ` Vladimir Makarov
2018-10-05 16:50 ` Peter Bergner
2018-10-05 18:54 ` Vladimir Makarov
2018-10-05 20:10 ` Peter Bergner
2018-10-05 22:56 ` Vladimir Makarov
2018-10-06 6:40 ` Peter Bergner
2018-10-08 9:37 ` Christophe Lyon
2018-10-08 14:21 ` Peter Bergner
2018-10-08 14:46 ` Christophe Lyon
2018-10-08 15:04 ` Jeff Law
2018-10-11 2:57 ` Peter Bergner
2018-10-11 18:26 ` Peter Bergner
2018-10-11 20:31 ` Peter Bergner
2018-10-11 20:46 ` Jeff Law
2018-10-11 21:09 ` Peter Bergner
2018-10-11 21:36 ` Jeff Law
2018-10-12 9:50 ` Eric Botcazou
2018-10-11 21:05 ` Vladimir Makarov
2018-10-12 16:57 ` Peter Bergner
2018-10-12 17:56 ` Jeff Law
2018-10-12 4:44 ` Jeff Law
2018-10-16 2:50 ` Peter Bergner
2018-11-01 18:50 ` Renlin Li
2018-11-01 20:35 ` Segher Boessenkool
2018-11-01 22:08 ` Peter Bergner
2018-11-02 10:05 ` Renlin Li
2018-11-05 19:20 ` Jeff Law
2018-11-05 19:36 ` Peter Bergner
2018-11-05 19:41 ` Jeff Law
2018-11-06 10:52 ` Renlin Li
2018-11-06 10:57 ` Ramana Radhakrishnan
2018-11-06 12:23 ` Renlin Li [this message]
2018-11-06 18:46 ` Peter Bergner
2018-11-06 18:58 ` Jeff Law
2018-11-08 10:57 ` Renlin Li
2018-11-08 11:49 ` Richard Biener
2018-11-08 14:29 ` Peter Bergner
2018-11-08 19:01 ` Peter Bergner
2018-11-08 12:35 ` Peter Bergner
2018-11-08 13:42 ` Renlin Li
2018-11-08 15:21 ` Peter Bergner
2018-11-08 16:20 ` Renlin Li
2018-11-08 17:52 ` Peter Bergner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0bc0abf-3b83-5842-2d67-560da5ef1def@foss.arm.com \
--to=renlin.li@foss.arm.com \
--cc=Ramana.Radhakrishnan@arm.com \
--cc=bergner@linux.ibm.com \
--cc=christophe.lyon@linaro.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=kyrylo.tkachov@arm.com \
--cc=law@redhat.com \
--cc=ramana.gcc@googlemail.com \
--cc=segher@kernel.crashing.org \
--cc=vmakarov@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).