Revert "[SCEV] Remove unused function; NFC"

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

llvm-svn: 271167
This commit is contained in:
Sanjoy Das 2016-05-29 04:08:50 +00:00
parent b50a95d298
commit 746addd261
1 changed files with 7 additions and 0 deletions

View File

@ -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