[PATCH 2/2] IPA ICF: make algorithm stable to survive -fcompare-debug
Martin Liška
mliska@suse.cz
Wed Jan 11 10:48:00 GMT 2017
On 01/11/2017 11:28 AM, Jakub Jelinek wrote:
> On Wed, Jan 11, 2017 at 11:21:08AM +0100, Christophe Lyon wrote:
>> Since then, I've noticed that
>> gcc.dg/tree-ssa/flatten-3.c scan-assembler cycle[123][: \t\n]
>> now fails on aarch64 and arm targets.
>
> It fails on x86_64-linux and i686-linux too.
>
> Jakub
>
Ok, problem is that we used to merge:
Semantic equality hit:doubleindirect1->subcycle1
Semantic equality hit:doubleindirect1->doublesubcycle1
Semantic equality hit:subcycle->doublesubcycle
and after my patch it changed to:
Semantic equality hit:doublesubcycle->subcycle
Semantic equality hit:doublesubcycle1->subcycle1
Semantic equality hit:doublesubcycle1->doubleindirect1
As output is grepped for a cycle[123], so of them would be merged.
Thus, adding -fno-ipa-icf would be the right fix.
Ready to be installed?
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-flatten-3.c-test-case.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170111/d388e2fb/attachment.bin>
More information about the Gcc-patches
mailing list