From 235859d66cf3faf7453f59b92cc4056ae1855d0d Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 29 Sep 2010 22:57:02 +0000 Subject: 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 . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115099 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/StandardPasses.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h index 1b40ede..6e76426 100644 --- a/include/llvm/Support/StandardPasses.h +++ b/include/llvm/Support/StandardPasses.h @@ -104,6 +104,7 @@ namespace llvm { 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. -- cgit v1.1