diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-17 15:25:05 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-17 15:25:05 +0000 |
| commit | 8dd69f88ea4538085e21b384967b31daab790653 (patch) | |
| tree | e9d49887d39ab1a8780604b4e761b10fa21bed52 /llvm/lib/Transforms/Scalar/Reassociate.cpp | |
| parent | c4ce58d8fee74ebea0ed3dbe563fee933226a3c9 (diff) | |
| download | bcm5719-llvm-8dd69f88ea4538085e21b384967b31daab790653.tar.gz bcm5719-llvm-8dd69f88ea4538085e21b384967b31daab790653.zip | |
Fix debug output to include a newline after printing a Value, now
that Value's operator<< doesn't include one.
llvm-svn: 79240
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 5592c909cf7..5e4a8df2e05 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -222,7 +222,7 @@ void Reassociate::LinearizeExpr(BinaryOperator *I) { isReassociableOp(RHS, I->getOpcode()) && "Not an expression that needs linearization?"); - DOUT << "Linear" << *LHS << *RHS << *I; + DOUT << "Linear" << *LHS << '\n' << *RHS << '\n' << *I << '\n'; // Move the RHS instruction to live immediately before I, avoiding breaking // dominator properties. @@ -235,7 +235,7 @@ void Reassociate::LinearizeExpr(BinaryOperator *I) { ++NumLinear; MadeChange = true; - DOUT << "Linearized: " << *I; + DOUT << "Linearized: " << *I << '\n'; // If D is part of this expression tree, tail recurse. if (isReassociableOp(I->getOperand(1), I->getOpcode())) @@ -334,10 +334,10 @@ void Reassociate::RewriteExprTree(BinaryOperator *I, if (I->getOperand(0) != Ops[i].Op || I->getOperand(1) != Ops[i+1].Op) { Value *OldLHS = I->getOperand(0); - DOUT << "RA: " << *I; + DOUT << "RA: " << *I << '\n'; I->setOperand(0, Ops[i].Op); I->setOperand(1, Ops[i+1].Op); - DOUT << "TO: " << *I; + DOUT << "TO: " << *I << '\n'; MadeChange = true; ++NumChanged; @@ -350,9 +350,9 @@ void Reassociate::RewriteExprTree(BinaryOperator *I, assert(i+2 < Ops.size() && "Ops index out of range!"); if (I->getOperand(1) != Ops[i].Op) { - DOUT << "RA: " << *I; + DOUT << "RA: " << *I << '\n'; I->setOperand(1, Ops[i].Op); - DOUT << "TO: " << *I; + DOUT << "TO: " << *I << '\n'; MadeChange = true; ++NumChanged; } @@ -450,7 +450,7 @@ static Instruction *BreakUpSubtract(LLVMContext &Context, Instruction *Sub, Sub->replaceAllUsesWith(New); Sub->eraseFromParent(); - DOUT << "Negated: " << *New; + DOUT << "Negated: " << *New << '\n'; return New; } |

