diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-05-29 07:33:16 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-05-29 07:33:16 +0000 |
| commit | 03bcb910de8ab7dcfc8fd0115484b66ebe2aed9d (patch) | |
| tree | c3db077faa375ee4cd07cf334e5f62a065198595 /polly/lib/CodeGen/BlockGenerators.cpp | |
| parent | b8b4b7eb0132bb42aec6a49d1bdcc184ceada78b (diff) | |
[Polly] Remove usage of the `apply` function
Summary:
API-wise `apply` is a somewhat unidiomatic one-off function, and
removing the only(?) use in polly will let me remove it from SCEV's
exposed interface.
Reviewers: jdoerfert, Meinersbur, grosser
Subscribers: grosser, mcrosier, pollydev
Differential Revision: http://reviews.llvm.org/D20779
llvm-svn: 271177
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 30291e284c86..3904e85784ec 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -73,7 +73,7 @@ Value *BlockGenerator::trySynthesizeNewValue(ScopStmt &Stmt, Value *Old, if (isa<SCEVCouldNotCompute>(Scev)) return nullptr; - const SCEV *NewScev = apply(Scev, LTS, SE); + const SCEV *NewScev = SCEVLoopAddRecRewriter::rewrite(Scev, LTS, SE); ValueMapT VTV; VTV.insert(BBMap.begin(), BBMap.end()); VTV.insert(GlobalMap.begin(), GlobalMap.end()); |
