diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-04 04:32:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-04 04:32:04 +0000 |
commit | fe196cf98be05d5fe0ace90e5de8195f9d556f6d (patch) | |
tree | 4ff62589e5cc4e143217bf704c8f3314a48b0f50 /tools | |
parent | 9a88d278dd00c5a61c38cc520e218949cf430923 (diff) | |
download | external_llvm-fe196cf98be05d5fe0ace90e5de8195f9d556f6d.zip external_llvm-fe196cf98be05d5fe0ace90e5de8195f9d556f6d.tar.gz external_llvm-fe196cf98be05d5fe0ace90e5de8195f9d556f6d.tar.bz2 |
Use new induction variable simplification code with -indvars option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/opt/Makefile | 2 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/opt/Makefile b/tools/opt/Makefile index 903591c..a4c1110 100644 --- a/tools/opt/Makefile +++ b/tools/opt/Makefile @@ -1,6 +1,6 @@ LEVEL = ../.. TOOLNAME = opt -USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms ipo target analysis +USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms scalaropts ipo target analysis include $(LEVEL)/Makefile.common diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 927a69a..837c2dd 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -17,6 +17,7 @@ #include "llvm/Transforms/LevelChange.h" #include "llvm/Transforms/SwapStructContents.h" #include "llvm/Transforms/IPO/GlobalDCE.h" +#include "llvm/Transforms/Scalar/IndVarSimplify.h" #include "Support/CommandLine.h" #include <fstream> #include <memory> @@ -48,7 +49,7 @@ struct { { mergecons, new ConstantMerge() }, { strip , new opt::SymbolStripping() }, { mstrip , new opt::FullSymbolStripping() }, - { indvars , new opt::InductionVariableCannonicalize() }, + { indvars , new InductionVariableSimplify() }, { sccp , new opt::SCCPPass() }, { adce , new opt::AgressiveDCE() }, { raise , new RaisePointerReferences() }, |