From b156afb79106ad53c61408d5037feb7d8128359a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 24 Sep 2006 00:08:16 +0000 Subject: Enable 'predsimplify' optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30589 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccas/gccas.cpp | 1 + tools/gccld/GenerateCode.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'tools') 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 -- cgit v1.2.3