From d42d49273475ee0d7986658d166728ff6dcfdfbf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 30 Jun 2001 04:36:40 +0000 Subject: Optimizations got their own header files Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations llvm-svn: 113 --- llvm/lib/Transforms/Scalar/InductionVars.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/InductionVars.cpp') diff --git a/llvm/lib/Transforms/Scalar/InductionVars.cpp b/llvm/lib/Transforms/Scalar/InductionVars.cpp index 28ab29fd49c..b39a523f591 100644 --- a/llvm/lib/Transforms/Scalar/InductionVars.cpp +++ b/llvm/lib/Transforms/Scalar/InductionVars.cpp @@ -19,7 +19,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Opt/AllOpts.h" +#include "llvm/Optimizations/InductionVars.h" #include "llvm/ConstPoolVals.h" #include "llvm/Analysis/IntervalPartition.h" #include "llvm/Assembly/Writer.h" @@ -29,6 +29,10 @@ #include "llvm/CFG.h" #include +#include "llvm/Analysis/LoopDepth.h" + +using namespace opt; + // isLoopInvariant - Return true if the specified value/basic block source is // an interval invariant computation. // @@ -379,13 +383,11 @@ static bool ProcessIntervalPartition(cfg::IntervalPartition &IP) { ptr_fun(ProcessInterval)); } -#include "llvm/Analysis/LoopDepth.h" - // DoInductionVariableCannonicalize - Simplify induction variables in loops. // This function loops over an interval partition of a program, reducing it // until the graph is gone. // -bool DoInductionVariableCannonicalize(Method *M) { +bool opt::DoInductionVariableCannonicalize(Method *M) { // TODO: REMOVE if (0) { // Print basic blocks with their depth LoopDepthCalculator LDC(M); -- cgit v1.2.3