summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpolly/include/polly/Support/ScopHelper.h4
-rw-r--r--polly/lib/Support/ScopHelper.cpp19
2 files changed, 0 insertions, 23 deletions
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h
index 2200ac3489b..175b389427a 100755
--- a/polly/include/polly/Support/ScopHelper.h
+++ b/polly/include/polly/Support/ScopHelper.h
@@ -41,10 +41,6 @@ namespace polly {
/// return the loop, otherwise, return null.
llvm::Loop *castToLoop(const llvm::Region &R, llvm::LoopInfo &LI);
- //===----------------------------------------------------------------------===//
- // Functions for checking affine functions.
- bool isIndVar(const llvm::SCEV *Var, llvm::Region &RefRegion,
- llvm::LoopInfo &LI, llvm::ScalarEvolution &SE);
/// @brief Check if the instruction I is the induction variable of a loop.
///
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());
OpenPOWER on IntegriCloud