Analysis: Simplify the ScalarEvolution::getGEPExpr() interface. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 13 Nov 2016 06:59:50 +0000 (06:59 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 13 Nov 2016 06:59:50 +0000 (06:59 +0000)
commit8dff03911c5efa7a3abd6fb43f09233758075b20
tree6e2895171854b8e5db38f2e52022888a930e1825
parent9ef5a8c501bfe3e28a24b235b1d097d17f86f3fe
Analysis: Simplify the ScalarEvolution::getGEPExpr() interface. NFCI.

All existing callers were manually extracting information out of an existing
GEP instruction and passing it to getGEPExpr(). Simplify the interface by
changing it to take a GEPOperator instead.

llvm-svn: 286751
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Transforms/Scalar/NaryReassociate.cpp
llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp