remove BasePointer before delinearizing
authorSebastian Pop <spop@codeaurora.org>
Tue, 27 May 2014 22:41:51 +0000 (22:41 +0000)
committerSebastian Pop <spop@codeaurora.org>
Tue, 27 May 2014 22:41:51 +0000 (22:41 +0000)
commit28e6b97b5de6b0cd0bf3e85bd1bcc14a7b261a9b
tree41f8edd8883b0a932749188ae737faf0fd7be765
parenta6e586051388a83198e5e0f1092657a2fc78e133
remove BasePointer before delinearizing

No functional change is intended: instead of relying on the delinearization to
come up with the base pointer as a remainder of the divisions in the
delinearization, we just compute it from the array access and use that value.
We substract the base pointer from the SCEV to be delinearized and that
simplifies the work of the delinearizer.

llvm-svn: 209692
llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
llvm/lib/Analysis/Delinearization.cpp
llvm/lib/Analysis/DependenceAnalysis.cpp
llvm/lib/Analysis/ScalarEvolution.cpp