llvm-project/llvm/test/Transforms/NaryReassociate
Jingyue Wu 4fc97f6df8 [NaryReassoc] reassociate GEP for CSE
Summary:
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.

Test Plan: nary-gep.ll

Reviewers: meheff, broune

Reviewed By: broune

Subscribers: jholewinski, llvm-commits

Differential Revision: http://reviews.llvm.org/D9802

llvm-svn: 237971
2015-05-21 23:17:30 +00:00
..
NVPTX [NaryReassoc] reassociate GEP for CSE 2015-05-21 23:17:30 +00:00
nary-add.ll [NaryReassociate] avoid running forever 2015-05-13 18:12:24 +00:00