diff options
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 7a32315..4913a89 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -16,6 +16,7 @@ #include "llvm/Support/CFG.h" #include "Support/STLExtras.h" #include "Support/StatisticReporter.h" +#include <iostream> static Statistic<> NumRemoved ("indvars\t\t- Number of aux indvars removed"); static Statistic<> NumInserted("indvars\t\t- Number of cannonical indvars added"); @@ -114,7 +115,7 @@ static bool TransformLoop(LoopInfo *Loops, Loop *Loop) { Changed = true; } - DEBUG(cerr << "Induction variables:\n"); + DEBUG(std::cerr << "Induction variables:\n"); // Get the current loop iteration count, which is always the value of the // cannonical phi node... @@ -127,7 +128,7 @@ static bool TransformLoop(LoopInfo *Loops, Loop *Loop) { for (unsigned i = 0; i < IndVars.size(); ++i) { InductionVariable *IV = &IndVars[i]; - DEBUG(cerr << IV); + DEBUG(std::cerr << IV); // Don't modify the cannonical indvar or unrecognized indvars... if (IV != Cannonical && IV->InductionType != InductionVariable::Unknown) { |