mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
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
This commit is contained in:
parent
1ae3c165f7
commit
43ff68ded0
@ -217,6 +217,7 @@ void initializeUnreachableBlockElimPass(PassRegistry&);
|
||||
void initializeUnreachableMachineBlockElimPass(PassRegistry&);
|
||||
void initializeVerifierPass(PassRegistry&);
|
||||
void initializeVirtRegMapPass(PassRegistry&);
|
||||
void initializeInstSimplifierPass(PassRegistry&);
|
||||
|
||||
}
|
||||
|
||||
|
@ -147,6 +147,7 @@ namespace {
|
||||
(void) llvm::createLowerAtomicPass();
|
||||
(void) llvm::createCorrelatedValuePropagationPass();
|
||||
(void) llvm::createMemDepPrinter();
|
||||
(void) llvm::createInstructionSimplifierPass();
|
||||
|
||||
(void)new llvm::IntervalPartition();
|
||||
(void)new llvm::FindUsedTypes();
|
||||
|
@ -322,6 +322,13 @@ Pass *createLowerAtomicPass();
|
||||
//
|
||||
Pass *createCorrelatedValuePropagationPass();
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// InstructionSimplifier - Remove redundant instructions.
|
||||
//
|
||||
FunctionPass *createInstructionSimplifierPass();
|
||||
extern char &InstructionSimplifierID;
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -21,6 +21,7 @@ add_llvm_library(LLVMTransformUtils
|
||||
PromoteMemoryToRegister.cpp
|
||||
SSAUpdater.cpp
|
||||
SimplifyCFG.cpp
|
||||
SimplifyInstructions.cpp
|
||||
UnifyFunctionExitNodes.cpp
|
||||
Utils.cpp
|
||||
ValueMapper.cpp
|
||||
|
@ -28,6 +28,7 @@ void llvm::initializeTransformUtils(PassRegistry &Registry) {
|
||||
initializeLowerSwitchPass(Registry);
|
||||
initializePromotePassPass(Registry);
|
||||
initializeUnifyFunctionExitNodesPass(Registry);
|
||||
initializeInstSimplifierPass(Registry);
|
||||
}
|
||||
|
||||
/// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
|
||||
|
Loading…
x
Reference in New Issue
Block a user