http://llvm.org/bugs/show_bug.cgi?id=21759
Bug ID: 21759
Summary: [AArch64] Second LoopUnrollPass may cause compile-time
regression with chained stores
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Created attachment 13437
--> http://llvm.org/bugs/attachment.cgi?id=13437&action=edit
Bad IR
Unfortunately, I can only reproduce this on our internal branch, but the
problem exists on mainline as well.
Given the following loop:
void foo (int a[])
{
int *ptr = a;
for (int i = 0; i <= 127; i++)
*ptr++ = 0xff;
}
Our internal branch will completely unroll the loop during the second call to
the LoopUnrollPass. The resulting IR (see attached bad.ll) causes a severe
compile-time regression when instruction selection begins recursively calling
WalkChainUsers in SelectionDAGISel.cpp.
If unrolling occurs during the first call to the LoopUnrollPass a later call to
InstCombine removes the chain by having all the gep use base + offset (see
attached bad.instcombine.ll).
I imagine the simplest solution would be to run InstCombine after the second
loop unrolling pass, but I'd like to get feedback before moving forward.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs