[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
This commit is contained in:
Sanjoy Das 2016-05-29 07:33:16 +00:00
parent b8b4b7eb01
commit 03bcb910de
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ Value *BlockGenerator::trySynthesizeNewValue(ScopStmt &Stmt, Value *Old,
if (isa<SCEVCouldNotCompute>(Scev)) if (isa<SCEVCouldNotCompute>(Scev))
return nullptr; return nullptr;
const SCEV *NewScev = apply(Scev, LTS, SE); const SCEV *NewScev = SCEVLoopAddRecRewriter::rewrite(Scev, LTS, SE);
ValueMapT VTV; ValueMapT VTV;
VTV.insert(BBMap.begin(), BBMap.end()); VTV.insert(BBMap.begin(), BBMap.end());
VTV.insert(GlobalMap.begin(), GlobalMap.end()); VTV.insert(GlobalMap.begin(), GlobalMap.end());