[polly] r271177 - [Polly] Remove usage of the `apply` function

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Sun May 29 00:33:32 PDT 2016

Author: sanjoy
Date: Sun May 29 02:33:16 2016
New Revision: 271177

URL: http://llvm.org/viewvc/llvm-project?rev=271177&view=rev
[Polly] Remove usage of the `apply` function

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


Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=271177&r1=271176&r2=271177&view=diff
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Sun May 29 02:33:16 2016
@@ -73,7 +73,7 @@ Value *BlockGenerator::trySynthesizeNewV
   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());

More information about the llvm-commits mailing list