forked from OSchip/llvm-project
[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:
parent
b8b4b7eb01
commit
03bcb910de
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue