diff options
-rw-r--r-- | polly/include/polly/Support/ScopHelper.h | 9 | ||||
-rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 9 |
2 files changed, 0 insertions, 18 deletions
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h index fe8d9ba2e6e..deae8071624 100644 --- a/polly/include/polly/Support/ScopHelper.h +++ b/polly/include/polly/Support/ScopHelper.h @@ -293,15 +293,6 @@ template <> struct simplify_type<polly::MemAccInst> { namespace polly { -/// Check if the PHINode has any incoming Invoke edge. -/// -/// @param PN The PHINode to check. -/// -/// @return If the PHINode has an incoming BB that jumps to the parent BB -/// of the PHINode with an invoke instruction, return true, -/// otherwise, return false. -bool hasInvokeEdge(const llvm::PHINode *PN); - /// Simplify the region to have a single unconditional entry edge and a /// single exit edge. /// 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. |