[llvm-commits] [llvm] r115099 - /llvm/trunk/include/llvm/Support/StandardPasses.h

Chris Lattner clattner at apple.com
Wed Sep 29 16:08:55 PDT 2010


On Sep 29, 2010, at 3:57 PM, Owen Anderson wrote:

> 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>.

Testcase?

-Chris

> 
> 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.
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list