summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2006-09-24 00:08:16 +0000
committerNick Lewycky <nicholas@mxc.ca>2006-09-24 00:08:16 +0000
commitb156afb79106ad53c61408d5037feb7d8128359a (patch)
treea6d45aaef4860d736ddefa64d9571b42adde8ccb /tools
parent8f389d8cd4c0e3d1eeb2cf93d1cbfe0948c363a4 (diff)
downloadllvm-b156afb79106ad53c61408d5037feb7d8128359a.tar.gz
llvm-b156afb79106ad53c61408d5037feb7d8128359a.tar.bz2
llvm-b156afb79106ad53c61408d5037feb7d8128359a.tar.xz
Enable 'predsimplify' optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp1
-rw-r--r--tools/gccld/GenerateCode.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index c46b29608a..8ac8ed4690 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -103,6 +103,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
+ addPass(PM, createPredicateSimplifierPass()); // Canonicalize registers
addPass(PM, createCondPropagationPass()); // Propagate conditionals
addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp
index 38b3d41845..2e81d38aac 100644
--- a/tools/gccld/GenerateCode.cpp
+++ b/tools/gccld/GenerateCode.cpp
@@ -248,6 +248,7 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize,
// The IPO passes may leave cruft around. Clean up after them.
addPass(Passes, createInstructionCombiningPass());
+ addPass(Passes, createPredicateSimplifierPass());
addPass(Passes, createScalarReplAggregatesPass()); // Break up allocas