diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-15 01:50:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-15 01:50:47 +0000 |
commit | 9a63520b1a0df393326f71f81865e123140f8820 (patch) | |
tree | 84d539731b201e900713d0b1daeab0b9689e19a6 /llvm/lib/Transforms/Scalar/Reassociate.cpp | |
parent | cae777bb4f41b496bc99231b4df79bdaa33d4e08 (diff) | |
download | bcm5719-llvm-9a63520b1a0df393326f71f81865e123140f8820.tar.gz bcm5719-llvm-9a63520b1a0df393326f71f81865e123140f8820.zip |
Fixes working towards PR341
llvm-svn: 14839
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 705da7f1cba..6e107497d43 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -127,7 +127,7 @@ bool Reassociate::ReassociateExpr(BinaryOperator *I) { std::swap(LHSRank, RHSRank); Changed = true; ++NumSwapped; - DEBUG(std::cerr << "Transposed: " << I + DEBUG(std::cerr << "Transposed: " << *I /* << " Result BB: " << I->getParent()*/); } @@ -156,7 +156,7 @@ bool Reassociate::ReassociateExpr(BinaryOperator *I) { I->getParent()->getInstList().insert(I, LHSI); ++NumChanged; - DEBUG(std::cerr << "Reassociated: " << I/* << " Result BB: " + DEBUG(std::cerr << "Reassociated: " << *I/* << " Result BB: " << I->getParent()*/); // Since we modified the RHS instruction, make sure that we recheck it. @@ -235,7 +235,7 @@ bool Reassociate::ReassociateBB(BasicBlock *BB) { New->setOperand(1, NegateValue(New->getOperand(1), BI)); Changed = true; - DEBUG(std::cerr << "Negated: " << New /*<< " Result BB: " << BB*/); + DEBUG(std::cerr << "Negated: " << *New /*<< " Result BB: " << BB*/); } // If this instruction is a commutative binary operator, and the ranks of @@ -265,7 +265,7 @@ bool Reassociate::ReassociateBB(BasicBlock *BB) { I = Tmp; ++NumLinear; Changed = true; - DEBUG(std::cerr << "Linearized: " << I/* << " Result BB: " << BB*/); + DEBUG(std::cerr << "Linearized: " << *I/* << " Result BB: " << BB*/); } // Make sure that this expression is correctly reassociated with respect |