summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LICM.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-26 09:46:52 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-26 09:46:52 +0000
commitb7427031372337e6d67f9573ec6c722ab5ea913e (patch)
tree81d17a2f061f022381d1f4104579aaa51ca84f31 /lib/Transforms/Scalar/LICM.cpp
parent62c804a3ea537a83f307ed9c2788138cc47cc2ed (diff)
downloadexternal_llvm-b7427031372337e6d67f9573ec6c722ab5ea913e.zip
external_llvm-b7427031372337e6d67f9573ec6c722ab5ea913e.tar.gz
external_llvm-b7427031372337e6d67f9573ec6c722ab5ea913e.tar.bz2
Removed #include <iostream> and replaced with llvm_* streams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r--lib/Transforms/Scalar/LICM.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp
index 7ca9be0..2a790f2 100644
--- a/lib/Transforms/Scalar/LICM.cpp
+++ b/lib/Transforms/Scalar/LICM.cpp
@@ -47,7 +47,6 @@
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include <algorithm>
-#include <iostream>
using namespace llvm;
namespace {
@@ -430,7 +429,7 @@ bool LICM::isLoopInvariantInst(Instruction &I) {
/// position, and may either delete it or move it to outside of the loop.
///
void LICM::sink(Instruction &I) {
- DEBUG(std::cerr << "LICM sinking instruction: " << I);
+ DOUT << "LICM sinking instruction: " << I;
std::vector<BasicBlock*> ExitBlocks;
CurLoop->getExitBlocks(ExitBlocks);
@@ -565,8 +564,7 @@ void LICM::sink(Instruction &I) {
/// that is safe to hoist, this instruction is called to do the dirty work.
///
void LICM::hoist(Instruction &I) {
- DEBUG(std::cerr << "LICM hoisting to " << Preheader->getName()
- << ": " << I);
+ DOUT << "LICM hoisting to " << Preheader->getName() << ": " << I;
// Remove the instruction from its current basic block... but don't delete the
// instruction.
@@ -785,7 +783,7 @@ void LICM::FindPromotableValuesInLoop(
for (AliasSet::iterator I = AS.begin(), E = AS.end(); I != E; ++I)
ValueToAllocaMap.insert(std::make_pair(I->first, AI));
- DEBUG(std::cerr << "LICM: Promoting value: " << *V << "\n");
+ DOUT << "LICM: Promoting value: " << *V << "\n";
}
}
}