diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-18 19:17:07 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-18 19:17:07 +0000 |
commit | 0d1cf2b875ec6252375a4d55d4f61fef51556723 (patch) | |
tree | 2c7ddf3f21109d969e57008ee1e87ce73c9a72b3 /polly/lib/Support/ScopHelper.cpp | |
parent | e039bb1fdbba9b25523841c3b04740bb042080bd (diff) | |
download | bcm5719-llvm-0d1cf2b875ec6252375a4d55d4f61fef51556723.tar.gz bcm5719-llvm-0d1cf2b875ec6252375a4d55d4f61fef51556723.zip |
ScopHelper: Remove some dead code
llvm-svn: 177307
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
-rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp index ac26a1a27f7..180f5795090 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -68,25 +68,6 @@ Value *polly::getPointerOperand(Instruction &Inst) { //===----------------------------------------------------------------------===// // Helper functions -bool polly::isIndVar(const SCEV *Var, Region &RefRegion, LoopInfo &LI, - ScalarEvolution &SE) { - const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(Var); - - // AddRecExprs are no induction variables. - if (!AddRec) - return false; - - Loop *L = const_cast<Loop *>(AddRec->getLoop()); - - // Is the addrec an induction variable of a loop contained in the current - // region. - if (!RefRegion.contains(L)) - return false; - - DEBUG(dbgs() << "Find AddRec: " << *AddRec - << " at region: " << RefRegion.getNameStr() << " as indvar\n"); - return true; -} bool polly::isIndVar(const Instruction *I, const LoopInfo *LI) { Loop *L = LI->getLoopFor(I->getParent()); |