[PATCH] D86364: [ValueTracking] Interpret GEPs as a series of adds multiplied by the related scaling factor

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 15:42:51 PDT 2020


qcolombet updated this revision to Diff 299495.
qcolombet added a comment.

- Skip zero indices
- Accumulate constant indices with constant scaling factor in a separate variable to avoid calls to computeForAddSub


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86364

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Transforms/InstCombine/constant-fold-address-space-pointer.ll
  llvm/test/Transforms/InstCombine/constant-fold-gep.ll
  llvm/unittests/Analysis/ValueTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86364.299495.patch
Type: text/x-patch
Size: 15157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201020/247d8eb2/attachment.bin>


More information about the llvm-commits mailing list