diff options
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index c5ab2dff68..376aff083a 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -14,6 +14,7 @@ #include "llvm/Optimizations/ConstantProp.h" #include "llvm/Optimizations/DCE.h" #include "llvm/Transforms/ConstantMerge.h" +#include "llvm/Transforms/Scalar/IndVarSimplify.h" #include "llvm/Bytecode/Writer.h" #include "Support/CommandLine.h" #include <memory> @@ -64,6 +65,7 @@ int main(int argc, char **argv) { // vector<Pass*> Passes; Passes.push_back(new CleanupGCCOutput()); // Fix gccisms + Passes.push_back(new InductionVariableSimplify()); // Simplify indvars Passes.push_back(new RaisePointerReferences()); // Fix general low level code Passes.push_back(new ConstantMerge()); // Merge dup global constants |