From f2e6a6be445025cd1a6354c332a08b2bbec75fef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Dec 2001 04:32:04 +0000 Subject: [PATCH] Use new induction variable simplification code with -indvars option llvm-svn: 1410 --- tools/opt/Makefile | 2 +- tools/opt/opt.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/opt/Makefile b/tools/opt/Makefile index 903591c80ce..a4c11102019 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 927a69a5f32..837c2ddef5b 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 #include @@ -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() },