[llvm-commits] [llvm] r115099 - /llvm/trunk/include/llvm/Support/StandardPasses.h
Owen Anderson
resistor at mac.com
Wed Sep 29 15:57:02 PDT 2010
Author: resistor
Date: Wed Sep 29 17:57:02 2010
New Revision: 115099
URL: http://llvm.org/viewvc/llvm-project?rev=115099&view=rev
Log:
Early CFG simplification can fold conditionals down to selects, which is often a good thing, but it can also
hide jump threading opportunities by turning control flow into data flow. Run an early JumpThreading pass
(adds approximately an additional 1% to optimization time on SPEC), allowing it to get a shot at these cases
first. Fixes <rdar://problem/8447345>.
Modified:
llvm/trunk/include/llvm/Support/StandardPasses.h
Modified: llvm/trunk/include/llvm/Support/StandardPasses.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/StandardPasses.h?rev=115099&r1=115098&r2=115099&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/StandardPasses.h (original)
+++ llvm/trunk/include/llvm/Support/StandardPasses.h Wed Sep 29 17:57:02 2010
@@ -104,6 +104,7 @@
PM->add(createDeadArgEliminationPass()); // Dead argument elimination
}
PM->add(createInstructionCombiningPass()); // Clean up after IPCP & DAE
+ PM->add(createJumpThreadingPass()); // Clean up after IPCP & DAE
PM->add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
// Start of CallGraph SCC passes.
More information about the llvm-commits
mailing list