[polly] r177307 - ScopHelper: Remove some dead code
Tobias Grosser
grosser at fim.uni-passau.de
Mon Mar 18 12:17:08 PDT 2013
Author: grosser
Date: Mon Mar 18 14:17:07 2013
New Revision: 177307
URL: http://llvm.org/viewvc/llvm-project?rev=177307&view=rev
Log:
ScopHelper: Remove some dead code
Modified:
polly/trunk/include/polly/Support/ScopHelper.h
polly/trunk/lib/Support/ScopHelper.cpp
Modified: polly/trunk/include/polly/Support/ScopHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/ScopHelper.h?rev=177307&r1=177306&r2=177307&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/ScopHelper.h (original)
+++ polly/trunk/include/polly/Support/ScopHelper.h Mon Mar 18 14:17:07 2013
@@ -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.
///
Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=177307&r1=177306&r2=177307&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Mon Mar 18 14:17:07 2013
@@ -68,25 +68,6 @@ Value *polly::getPointerOperand(Instruct
//===----------------------------------------------------------------------===//
// 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());
More information about the llvm-commits
mailing list