summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorAmjad Aboud <amjad.aboud@intel.com>2018-01-24 12:42:42 +0000
committerAmjad Aboud <amjad.aboud@intel.com>2018-01-24 12:42:42 +0000
commite4453233d78788989c4bf2ff927a9e67433fb63d (patch)
tree852418eb4b403be8210679108562c8ddd6fb0033 /llvm/tools/opt/opt.cpp
parentf26df4783132de2a534572a53847716a89d98339 (diff)
downloadbcm5719-llvm-e4453233d78788989c4bf2ff927a9e67433fb63d.tar.gz
bcm5719-llvm-e4453233d78788989c4bf2ff927a9e67433fb63d.zip
[InstCombine] Introducing Aggressive Instruction Combine pass (-aggressive-instcombine).
Combine expression patterns to form expressions with fewer, simple instructions. This pass does not modify the CFG. For example, this pass reduce width of expressions post-dominated by TruncInst into smaller width when applicable. It differs from instcombine pass in that it contains pattern optimization that requires higher complexity than the O(1), thus, it should run fewer times than instcombine pass. Differential Revision: https://reviews.llvm.org/D38313 llvm-svn: 323321
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
-rw-r--r--llvm/tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index c1c84844a4a..e03f6cee39f 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -395,6 +395,7 @@ int main(int argc, char **argv) {
initializeAnalysis(Registry);
initializeTransformUtils(Registry);
initializeInstCombine(Registry);
+ initializeAggressiveInstCombinerLegacyPassPass(Registry);
initializeInstrumentation(Registry);
initializeTarget(Registry);
// For codegen passes, only passes that do IR to IR transformation are
OpenPOWER on IntegriCloud