diff options
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 7397a5e09cd..558c905f529 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -35,15 +35,6 @@ static cl::opt<bool> PollyAllowErrorBlocks( cl::desc("Allow to speculate on the execution of 'error blocks'."), cl::Hidden, cl::init(true), cl::ZeroOrMore, cl::cat(PollyCategory)); -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))) - if (II->getParent() == PN->getIncomingBlock(i)) - return true; - - return false; -} - // Ensures that there is just one predecessor to the entry node from outside the // region. // The identity of the region entry node is preserved. |