aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-12-20 20:54:37 +0000
committerDuncan Sands <baldrick@free.fr>2010-12-20 20:54:37 +0000
commit43ff68ded09bf6f722548fa6c62d742483bd133c (patch)
treef898684976ade9d34c20d3ee0429fdcf3a666903 /include/llvm/Transforms
parent1ae3c165f7f6dd265f136d975f255c18de53a960 (diff)
downloadexternal_llvm-43ff68ded09bf6f722548fa6c62d742483bd133c.zip
external_llvm-43ff68ded09bf6f722548fa6c62d742483bd133c.tar.gz
external_llvm-43ff68ded09bf6f722548fa6c62d742483bd133c.tar.bz2
Add a new convenience pass for testing InstructionSimplify. Previously
it could only be tested indirectly, via instcombine, gvn or some other pass that makes use of InstructionSimplify, which means that testcases had to be carefully contrived to dance around any other transformations that that pass did. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Scalar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index fa84845..84690fd 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -322,6 +322,13 @@ Pass *createLowerAtomicPass();
//
Pass *createCorrelatedValuePropagationPass();
+//===----------------------------------------------------------------------===//
+//
+// InstructionSimplifier - Remove redundant instructions.
+//
+FunctionPass *createInstructionSimplifierPass();
+extern char &InstructionSimplifierID;
+
} // End llvm namespace
#endif