Simplify induction variables before 'raising' the representation
authorChris Lattner <sabre@nondot.org>
Wed, 5 Dec 2001 06:34:58 +0000 (06:34 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Dec 2001 06:34:58 +0000 (06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1418 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/Makefile
tools/gccas/gccas.cpp

index bdd41a30246a34a8aeb90e7a339f54a8a09e6432..c5f6a497612159486a28ec14758add8380200837 100644 (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
index c5ab2dff68dc53b216a80362b0df0f457a2a9cb0..376aff083a4322d4288091916f77ea99f8768009 100644 (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