OSDN Git Service

Revert "[SCEV] Remove unused function; NFC"
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 29 May 2016 04:08:50 +0000 (04:08 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 29 May 2016 04:08:50 +0000 (04:08 +0000)
This reverts commit r271155.  The `apply` function is actually used by
Polly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271167 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolutionExpressions.h

index a658b80..dfb25f4 100644 (file)
@@ -680,6 +680,13 @@ namespace llvm {
   private:
     LoopToScevMapT &Map;
   };
+
+/// 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