aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/Local.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-12 19:40:54 +0000
committerChris Lattner <sabre@nondot.org>2010-01-12 19:40:54 +0000
commite234a30a282f1aaec4aa63460fe8bba6416832a8 (patch)
treea3de201469b3069649eb75fe2e125edba4e9991a /include/llvm/Transforms/Utils/Local.h
parentd77fdba5737ee71b63681160fba5b2fc200583f4 (diff)
downloadexternal_llvm-e234a30a282f1aaec4aa63460fe8bba6416832a8.zip
external_llvm-e234a30a282f1aaec4aa63460fe8bba6416832a8.tar.gz
external_llvm-e234a30a282f1aaec4aa63460fe8bba6416832a8.tar.bz2
add a helper function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93251 91177308-0d34-0410-b5e6-96231b3b80d8
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 103d4cd..0b8147e 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -74,6 +74,14 @@ bool RecursivelyDeleteTriviallyDeadInstructions(Value *V);
/// too, recursively. Return true if the PHI node is actually deleted.
bool RecursivelyDeleteDeadPHINode(PHINode *PN);
+
+/// SimplifyInstructionsInBlock - Scan the specified basic block and try to
+/// simplify any instructions in it and recursively delete dead instructions.
+///
+/// This returns true if it changed the code, note that it can delete
+/// instructions in other blocks as well in this block.
+bool SimplifyInstructionsInBlock(BasicBlock *BB, const TargetData *TD = 0);
+
//===----------------------------------------------------------------------===//
// Control Flow Graph Restructuring.
//