diff options
author | Craig Topper <craig.topper@intel.com> | 2018-04-24 00:05:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-04-24 00:05:21 +0000 |
commit | d4eb2073b721e2f36063dedb63055539569f5e26 (patch) | |
tree | 80bb6912f797ced539eb9b0b30e93feab46bc8ba /llvm/lib/Transforms | |
parent | e5e4bf02d654a81a908c033c435bef5955280ae7 (diff) | |
download | bcm5719-llvm-d4eb2073b721e2f36063dedb63055539569f5e26.tar.gz bcm5719-llvm-d4eb2073b721e2f36063dedb63055539569f5e26.zip |
[AggressiveInstCombine] Add library initializer routine for AggressiveInstCombine library. Use it in bugpoint and llvm-opt-fuzzer to match regular InstCombine.
This should make aggressive instcombine usable with these tools.
llvm-svn: 330663
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp index 18432c03108..1feeec5d05c 100644 --- a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp +++ b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp @@ -111,6 +111,11 @@ INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) INITIALIZE_PASS_END(AggressiveInstCombinerLegacyPass, "aggressive-instcombine", "Combine pattern based expressions", false, false) +// Initialization Routines +void llvm::initializeAggressiveInstCombine(PassRegistry &Registry) { + initializeAggressiveInstCombinerLegacyPassPass(Registry); +} + FunctionPass *llvm::createAggressiveInstCombinerPass() { return new AggressiveInstCombinerLegacyPass(); } |