[polly] r294062 - [Support] Remove unused function hasInvokeEdge. NFC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 14:53:10 PST 2017


Author: meinersbur
Date: Fri Feb  3 16:53:10 2017
New Revision: 294062

URL: http://llvm.org/viewvc/llvm-project?rev=294062&view=rev
Log:
[Support] Remove unused function hasInvokeEdge. NFC.

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=294062&r1=294061&r2=294062&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/ScopHelper.h (original)
+++ polly/trunk/include/polly/Support/ScopHelper.h Fri Feb  3 16:53:10 2017
@@ -293,15 +293,6 @@ template <> struct simplify_type<polly::
 
 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.
 ///

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=294062&r1=294061&r2=294062&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Fri Feb  3 16:53:10 2017
@@ -35,15 +35,6 @@ static cl::opt<bool> PollyAllowErrorBloc
     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.




More information about the llvm-commits mailing list