mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Fixes working towards PR341
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user