From 03bcb910de8ab7dcfc8fd0115484b66ebe2aed9d Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Sun, 29 May 2016 07:33:16 +0000 Subject: [PATCH] [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 --- polly/lib/CodeGen/BlockGenerators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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());