More aggressive threading causing loop-interchange-9.c regression

Aldy Hernandez aldyh@redhat.com
Wed Sep 8 13:25:11 GMT 2021


> It would be helpful to have the patch causing the issue to look at the IL.
> But as Micha said, there needs to be a perfect loop nest for interchange
> to work.
> 
> Richard.

Absolutely!  I'm attaching the reduced testcase, as well as the patch.

The problematic thread shows up in the thread2 dump:

Checking profitability of path (backwards):  bb:3 (4 insns) bb:9 (0 
insns) bb:5
   Control statement insns: 2
   Overall: 2 insns
   Registering FSM jump thread: (5, 9) incoming edge;  (9, 3)  (3, 8) 
nocopy; (3, 8)

Thanks.
Aldy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.patch
Type: text/x-patch
Size: 1312 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20210908/38791668/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.c
Type: text/x-csrc
Size: 461 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20210908/38791668/attachment-0001.bin>


More information about the Gcc mailing list