Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: tools/pnacl-llc/pnacl-llc.cpp

Issue 282553003: PNaCl translator: combine insertelement / extractelement patterns generated by the toolchain into s… (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Add DCE, address dschuff's comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/opt/opt.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/pnacl-llc/pnacl-llc.cpp
diff --git a/tools/pnacl-llc/pnacl-llc.cpp b/tools/pnacl-llc/pnacl-llc.cpp
index 35cddefa3f7e51651813c3062a5c3ad022bbf919..82ecdb45234c0f029074f3c86953abb051b37f8b 100644
--- a/tools/pnacl-llc/pnacl-llc.cpp
+++ b/tools/pnacl-llc/pnacl-llc.cpp
@@ -420,6 +420,10 @@ static int runCompilePasses(Module *mod,
TLI->disableAllFunctions();
PM->add(TLI);
+ // Allow subsequent passes to better optimize vector instructions.
+ // This pass uses the TargetLibraryInfo above.
+ PM->add(createCombineVectorInstructionsPass());
+
// Add intenal analysis passes from the target machine.
Target.addAnalysisPasses(*PM.get());
« no previous file with comments | « tools/opt/opt.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698