mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4c56fbc39
commit
f67ef318aa
@ -182,7 +182,7 @@ ICmpInst *IndVarSimplify::LinearFunctionTestReplace(Loop *L,
|
|||||||
else
|
else
|
||||||
Opcode = ICmpInst::ICMP_EQ;
|
Opcode = ICmpInst::ICMP_EQ;
|
||||||
|
|
||||||
DEBUG(errs() << "INDVARS: Rewriting loop exit condition to:\n"
|
DEBUG(dbgs() << "INDVARS: Rewriting loop exit condition to:\n"
|
||||||
<< " LHS:" << *CmpIndVar << '\n'
|
<< " LHS:" << *CmpIndVar << '\n'
|
||||||
<< " op:\t"
|
<< " op:\t"
|
||||||
<< (Opcode == ICmpInst::ICMP_NE ? "!=" : "==") << "\n"
|
<< (Opcode == ICmpInst::ICMP_NE ? "!=" : "==") << "\n"
|
||||||
@ -273,7 +273,7 @@ void IndVarSimplify::RewriteLoopExitValues(Loop *L,
|
|||||||
|
|
||||||
Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst);
|
Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst);
|
||||||
|
|
||||||
DEBUG(errs() << "INDVARS: RLEV: AfterLoopVal = " << *ExitVal << '\n'
|
DEBUG(dbgs() << "INDVARS: RLEV: AfterLoopVal = " << *ExitVal << '\n'
|
||||||
<< " LoopVal = " << *Inst << "\n");
|
<< " LoopVal = " << *Inst << "\n");
|
||||||
|
|
||||||
PN->setIncomingValue(i, ExitVal);
|
PN->setIncomingValue(i, ExitVal);
|
||||||
@ -401,7 +401,7 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
|
|||||||
|
|
||||||
++NumInserted;
|
++NumInserted;
|
||||||
Changed = true;
|
Changed = true;
|
||||||
DEBUG(errs() << "INDVARS: New CanIV: " << *IndVar << '\n');
|
DEBUG(dbgs() << "INDVARS: New CanIV: " << *IndVar << '\n');
|
||||||
|
|
||||||
// Now that the official induction variable is established, reinsert
|
// Now that the official induction variable is established, reinsert
|
||||||
// the old canonical-looking variable after it so that the IR remains
|
// the old canonical-looking variable after it so that the IR remains
|
||||||
@ -506,7 +506,7 @@ void IndVarSimplify::RewriteIVExpressions(Loop *L, const Type *LargestType,
|
|||||||
NewVal->takeName(Op);
|
NewVal->takeName(Op);
|
||||||
User->replaceUsesOfWith(Op, NewVal);
|
User->replaceUsesOfWith(Op, NewVal);
|
||||||
UI->setOperandValToReplace(NewVal);
|
UI->setOperandValToReplace(NewVal);
|
||||||
DEBUG(errs() << "INDVARS: Rewrote IV '" << *AR << "' " << *Op << '\n'
|
DEBUG(dbgs() << "INDVARS: Rewrote IV '" << *AR << "' " << *Op << '\n'
|
||||||
<< " into = " << *NewVal << "\n");
|
<< " into = " << *NewVal << "\n");
|
||||||
++NumRemoved;
|
++NumRemoved;
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user