[PATCH] D122857: [LoopCacheAnalysis] Enable delinearization of fixed sized arrays

Congzhe Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 20:15:09 PDT 2022


congzhe added inline comments.


================
Comment at: llvm/lib/Analysis/LoopCacheAnalysis.cpp:345-346
+  Value *SrcBasePtr = SrcGEP->getOperand(0);
+  while (auto *PCast = dyn_cast<BitCastInst>(SrcBasePtr))
+    SrcBasePtr = PCast->getOperand(0);
+
----------------
Meinersbur wrote:
> Did you consider one of `stripPointerCasts`, `stripPointerCastsAndAliases`, `stripPointerCastsSameRepresentation`, `stripPointerCastsForAliasAnalysis`?
Thanks for the comment! According to your comment, this piece of change in `DependenceAnalysis.cpp` is updated to using `stripPointerCasts()` in D123559 and is now landed, and here I've done the same updated.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122857/new/

https://reviews.llvm.org/D122857



More information about the llvm-commits mailing list