summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-06 18:54:12 +0000
committerChris Lattner <sabre@nondot.org>2002-05-06 18:54:12 +0000
commit5f06e10a84f7059135a0323d2935d10a83d97907 (patch)
tree5bda9fa4bf5df4eedeae16868b6e30625cc4309c /tools
parent89df1b58a968506af2abba9e6f7d73c1e43b5d57 (diff)
downloadllvm-5f06e10a84f7059135a0323d2935d10a83d97907.tar.gz
llvm-5f06e10a84f7059135a0323d2935d10a83d97907.tar.bz2
llvm-5f06e10a84f7059135a0323d2935d10a83d97907.tar.xz
GCSE is faster than SCCP, and it makes SCCP's job easier, so run it first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 5d14e3c4a0..8539180c28 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -84,8 +84,8 @@ int main(int argc, char **argv) {
Passes.add(createPromoteMemoryToRegister()); // Promote alloca's to regs
Passes.add(createInstructionCombiningPass()); // Combine silly seq's
Passes.add(createDeadInstEliminationPass()); // Kill InstCombine remnants
- Passes.add(createSCCPPass()); // Constant prop with SCCP
Passes.add(createGCSEPass()); // Remove common subexprs
+ Passes.add(createSCCPPass()); // Constant prop with SCCP
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
}
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...