summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-14 16:23:14 +0000
committerChris Lattner <sabre@nondot.org>2002-05-14 16:23:14 +0000
commit4ad532299a9109c1b30f45a5207b5ac0e31179fb (patch)
treee8c7cc25453235f4e789ee1e88f5fb8494d67bc1 /tools
parentafc38686b426645ad10562c7eddfd6785663f1bb (diff)
downloadllvm-4ad532299a9109c1b30f45a5207b5ac0e31179fb.tar.gz
llvm-4ad532299a9109c1b30f45a5207b5ac0e31179fb.tar.bz2
llvm-4ad532299a9109c1b30f45a5207b5ac0e31179fb.tar.xz
Run another local value numbering phase after redundancy elimination
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index c2f7a8c542..1a0067e296 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -83,6 +83,10 @@ int main(int argc, char **argv) {
Passes.add(createLICMPass()); // Hoist loop invariants
Passes.add(createGCSEPass()); // Remove common subexprs
Passes.add(createSCCPPass()); // Constant prop with SCCP
+
+ // Run instcombine after redundancy elimination to exploit opportunities
+ // opened up by them.
+ Passes.add(createInstructionCombiningPass());
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
}
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...