[PATCH] D23854: [LoopAccessAnalysis] Recognize geps that include s/zexts as consecutive memory accesses.

Balaram Makam via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 09:13:21 PDT 2016

bmakam added inline comments.

Comment at: lib/Analysis/LoopAccessAnalysis.cpp:1112
@@ +1111,3 @@
+    APInt KnownOne(BitWidth, 0);
+    computeKnownBits(OpA, KnownZero, KnownOne, DL, 0, nullptr, OpA, DT);
+    KnownZero &= ~APInt::getHighBitsSet(BitWidth, 1);
mcrosier wrote:
> bmakam wrote:
> > I think it is very rare we ever reach this code. In my testing on spec2k* I did not find any instance.
> Balaram,
> Do you mean you added an assertion to make sure we never hit this code or that you didn't see any codegen changes for SPEC200X?
What I meant was I did not see any codegen changes but in retrospect I added assertion and it hits almost all of SPEC200x, so this might impact compile time.


More information about the llvm-commits mailing list