diff options
author | Tobias Grosser <tobias@grosser.es> | 2015-06-29 14:42:48 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2015-06-29 14:42:48 +0000 |
commit | 032d56baf20ec5ec5ec3f186ea3bb51e128ecbef (patch) | |
tree | c053d0991c6a740d92841c58c8d1c3131b93e647 /lib/Analysis/Delinearization.cpp | |
parent | 9a6c9023325b44115e5559098c4e01914d13ee82 (diff) |
Move delinearization from SCEVAddRecExpr to ScalarEvolution
The expressions we delinearize do not necessarily have to have a SCEVAddRecExpr
at the outermost level. At this moment, the additional flexibility is not
exploited in LLVM itself, but in Polly we will soon soonish use this
functionality. For LLVM, this change should not affect existing functionality
(which is covered by test/Analysis/Delinearization/)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Delinearization.cpp')
-rw-r--r-- | lib/Analysis/Delinearization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Delinearization.cpp b/lib/Analysis/Delinearization.cpp index d603b7b21e3..9d157860326 100644 --- a/lib/Analysis/Delinearization.cpp +++ b/lib/Analysis/Delinearization.cpp @@ -115,7 +115,7 @@ void Delinearization::print(raw_ostream &O, const Module *) const { O << "AddRec: " << *AR << "\n"; SmallVector<const SCEV *, 3> Subscripts, Sizes; - AR->delinearize(*SE, Subscripts, Sizes, SE->getElementSize(Inst)); + SE->delinearize(AR, Subscripts, Sizes, SE->getElementSize(Inst)); if (Subscripts.size() == 0 || Sizes.size() == 0 || Subscripts.size() != Sizes.size()) { O << "failed to delinearize\n"; |