summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InductionVars.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-30 04:36:40 +0000
committerChris Lattner <sabre@nondot.org>2001-06-30 04:36:40 +0000
commitd42d49273475ee0d7986658d166728ff6dcfdfbf (patch)
tree0b80e7a295a1f20129205aa46e9d7d07401597e3 /llvm/lib/Transforms/Scalar/InductionVars.cpp
parent31cf984332ebfd871c3765d2e59e8b15272e2147 (diff)
downloadbcm5719-llvm-d42d49273475ee0d7986658d166728ff6dcfdfbf.tar.gz
bcm5719-llvm-d42d49273475ee0d7986658d166728ff6dcfdfbf.zip
Optimizations got their own header files
Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations llvm-svn: 113
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductionVars.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InductionVars.cpp10
1 files changed, 6 insertions, 4 deletions
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 <algorithm>
+#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);
OpenPOWER on IntegriCloud