aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/Local.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r--include/llvm/Transforms/Utils/Local.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 35d2c0ce7e..2032d54871 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -40,6 +40,14 @@ template<typename T> class SmallVectorImpl;
bool ConstantFoldTerminator(BasicBlock *BB);
//===----------------------------------------------------------------------===//
+// CFG Simplification
+//
+
+/// isTerminatorFirstRelevantInsn - Return true if Term is very first
+/// instruction ignoring Phi nodes and dbg intrinsics.
+bool isTerminatorFirstRelevantInsn(BasicBlock *BB, Instruction *Term);
+
+//===----------------------------------------------------------------------===//
// Local dead code elimination.
//