Simplify induction variables before 'raising' the representation

llvm-svn: 1418
This commit is contained in:
Chris Lattner 2001-12-05 06:34:58 +00:00
parent 617aaaad86
commit 0f5a8d4749
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
LEVEL = ../..
TOOLNAME = gccas
USEDLIBS = asmparser bcwriter transforms analysis opt vmcore asmwriter support target
USEDLIBS = asmparser bcwriter scalaropts transforms analysis opt vmcore asmwriter support target
include $(LEVEL)/Makefile.common

View File

@ -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