[PATCH] [NaryReassoc] reassociate GEP for CSE

Jingyue Wu jingyue at google.com
Fri May 15 15:46:12 PDT 2015


Hi broune, meheff,

x = &a[i];
y = &a[i + j];

=>

y = x + j;

along with some refactoring work such as extracting method
findClosestMatchingDominator.

Depends on D9786 which provides the ScalarEvolution::getGEPExpr interface.

http://reviews.llvm.org/D9802

Files:
  lib/Transforms/Scalar/NaryReassociate.cpp
  test/Transforms/NaryReassociate/NVPTX/nary-gep.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9802.25900.patch
Type: text/x-patch
Size: 16048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150515/872e55f2/attachment.bin>


More information about the llvm-commits mailing list