Make this pass use a more specific debug message than "Processing:".

llvm-svn: 14541
This commit is contained in:
Brian Gaeke 2004-07-01 19:27:10 +00:00
parent fa3561c603
commit 163c87fc32
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ bool RPR::DoRaisePass(Function &F) {
bool Changed = false;
for (Function::iterator BB = F.begin(), BBE = F.end(); BB != BBE; ++BB)
for (BasicBlock::iterator BI = BB->begin(); BI != BB->end();) {
DEBUG(std::cerr << "Processing: " << *BI);
DEBUG(std::cerr << "LevelRaising: " << *BI);
if (dceInstruction(BI) || doConstantPropagation(BI)) {
Changed = true;
++NumDCEorCP;

View File

@ -211,7 +211,7 @@ bool Reassociate::ReassociateBB(BasicBlock *BB) {
bool Changed = false;
for (BasicBlock::iterator BI = BB->begin(); BI != BB->end(); ++BI) {
DEBUG(std::cerr << "Processing: " << *BI);
DEBUG(std::cerr << "Reassociating: " << *BI);
if (BI->getOpcode() == Instruction::Sub && !BinaryOperator::isNeg(BI)) {
// Convert a subtract into an add and a neg instruction... so that sub
// instructions can be commuted with other add instructions...