summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-04-24 00:05:21 +0000
committerCraig Topper <craig.topper@intel.com>2018-04-24 00:05:21 +0000
commitd4eb2073b721e2f36063dedb63055539569f5e26 (patch)
tree80bb6912f797ced539eb9b0b30e93feab46bc8ba /llvm/lib/Transforms
parente5e4bf02d654a81a908c033c435bef5955280ae7 (diff)
downloadbcm5719-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.cpp5
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();
}
OpenPOWER on IntegriCloud