aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-26 18:16:07 +0000
committerChris Lattner <sabre@nondot.org>2001-11-26 18:16:07 +0000
commita8b3015d4039b6cf20d57cf3176b002f8d8978f5 (patch)
tree13905f850bd1a8465a00e646ff5f25afc69d97c2 /tools
parent4d631b85c12d4a38cceea463ec4f7c1d7d5af6b7 (diff)
downloadexternal_llvm-a8b3015d4039b6cf20d57cf3176b002f8d8978f5.zip
external_llvm-a8b3015d4039b6cf20d57cf3176b002f8d8978f5.tar.gz
external_llvm-a8b3015d4039b6cf20d57cf3176b002f8d8978f5.tar.bz2
Run constprop before -raise
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 52449a8..d01e4ed 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -64,6 +64,7 @@ int main(int argc, char **argv) {
//
vector<Pass*> Passes;
Passes.push_back(new CleanupGCCOutput()); // Fix gccisms
+ Passes.push_back(new opt::ConstantPropogation());// Trivial const prop
Passes.push_back(new RaisePointerReferences()); // Fix general low level code
Passes.push_back(new opt::ConstantPropogation());// Trivial const prop
Passes.push_back(new opt::DeadCodeElimination());// Trivial DCE