[llvm] r271167 - Revert "[SCEV] Remove unused function; NFC"

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Sat May 28 21:08:52 PDT 2016


Author: sanjoy
Date: Sat May 28 23:08:50 2016
New Revision: 271167

URL: http://llvm.org/viewvc/llvm-project?rev=271167&view=rev
Log:
Revert "[SCEV] Remove unused function; NFC"

This reverts commit r271155.  The `apply` function is actually used by
Polly.

Modified:
    llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h

Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h?rev=271167&r1=271166&r2=271167&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h Sat May 28 23:08:50 2016
@@ -680,6 +680,13 @@ namespace llvm {
   private:
     LoopToScevMapT ⤅
   };
+
+/// Applies the Map (Loop -> SCEV) to the given Scev.
+static inline const SCEV *apply(const SCEV *Scev, LoopToScevMapT &Map,
+                                ScalarEvolution &SE) {
+  return SCEVLoopAddRecRewriter::rewrite(Scev, Map, SE);
+}
+
 }
 
 #endif




More information about the llvm-commits mailing list