aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-05 06:34:58 +0000
committerChris Lattner <sabre@nondot.org>2001-12-05 06:34:58 +0000
commit9c6f2ac665bbf0a95536ce473d5daf40bf5cd3db (patch)
tree0add160164b683cf230f6f18602b1e995c3c3190 /tools
parenta8b6d43f2aeb21e644d6f50e9635efd34b25903d (diff)
downloadexternal_llvm-9c6f2ac665bbf0a95536ce473d5daf40bf5cd3db.zip
external_llvm-9c6f2ac665bbf0a95536ce473d5daf40bf5cd3db.tar.gz
external_llvm-9c6f2ac665bbf0a95536ce473d5daf40bf5cd3db.tar.bz2
Simplify induction variables before 'raising' the representation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/Makefile2
-rw-r--r--tools/gccas/gccas.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/gccas/Makefile b/tools/gccas/Makefile
index bdd41a3..c5f6a49 100644
--- a/tools/gccas/Makefile
+++ b/tools/gccas/Makefile
@@ -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
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index c5ab2df..376aff0 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