mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 11:22:03 +00:00
[Support] Remove unused function hasInvokeEdge. NFC.
llvm-svn: 294062
This commit is contained in:
parent
9f8e47b28c
commit
eeadf31de1
@ -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.
|
||||
///
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user