diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-20 18:03:18 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-20 18:03:18 +0000 |
commit | ecfe21b79262829d3708f45a879be34981504e22 (patch) | |
tree | 81f7c54aca5ccde784d64b7923c8a14c0d0b71e9 /polly/lib/Support/ScopHelper.cpp | |
parent | 62f1fea4c5ecd56792354b97cecdb7e09c2bf70c (diff) | |
download | bcm5719-llvm-ecfe21b79262829d3708f45a879be34981504e22.tar.gz bcm5719-llvm-ecfe21b79262829d3708f45a879be34981504e22.zip |
Remove dependence on canonical induction variable
When using the scev based code generation, we now do not rely on the presence
of a canonical induction variable any more. This commit prepares the path to
(conditionally) disable the induction variable canonicalization pass.
llvm-svn: 177548
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
-rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp index 180f5795090..904492a2814 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -66,15 +66,6 @@ Value *polly::getPointerOperand(Instruction &Inst) { return 0; } -//===----------------------------------------------------------------------===// -// Helper functions - -bool polly::isIndVar(const Instruction *I, const LoopInfo *LI) { - Loop *L = LI->getLoopFor(I->getParent()); - - return L && I == L->getCanonicalInductionVariable(); -} - bool polly::hasInvokeEdge(const PHINode *PN) { for (unsigned i = 0, e = PN->getNumIncomingValues(); i < e; ++i) if (InvokeInst *II = dyn_cast<InvokeInst>(PN->getIncomingValue(i))) |