diff options
author | Duncan Sands <baldrick@free.fr> | 2010-12-20 20:54:37 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-12-20 20:54:37 +0000 |
commit | 43ff68ded09bf6f722548fa6c62d742483bd133c (patch) | |
tree | f898684976ade9d34c20d3ee0429fdcf3a666903 /include/llvm/Transforms/Scalar.h | |
parent | 1ae3c165f7f6dd265f136d975f255c18de53a960 (diff) |
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/Scalar.h')
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index fa848459a7..84690fd740 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 |