[Support] Remove unused function hasInvokeEdge. NFC.

llvm-svn: 294062
This commit is contained in:
Michael Kruse 2017-02-03 22:53:10 +00:00
parent 9f8e47b28c
commit eeadf31de1
2 changed files with 0 additions and 18 deletions

View File

@ -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.
///

View File

@ -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.