mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
[LFTR] Adjust debug output to include extensions (if any)
llvm-svn: 364346
This commit is contained in:
parent
80973505f7
commit
e18f4e6200
@ -2463,13 +2463,6 @@ linearFunctionTestReplace(Loop *L, BasicBlock *ExitingBB,
|
|||||||
else
|
else
|
||||||
P = ICmpInst::ICMP_EQ;
|
P = ICmpInst::ICMP_EQ;
|
||||||
|
|
||||||
LLVM_DEBUG(dbgs() << "INDVARS: Rewriting loop exit condition to:\n"
|
|
||||||
<< " LHS:" << *CmpIndVar << '\n'
|
|
||||||
<< " op:\t" << (P == ICmpInst::ICMP_NE ? "!=" : "==")
|
|
||||||
<< "\n"
|
|
||||||
<< " RHS:\t" << *ExitCnt << "\n"
|
|
||||||
<< " IVCount:\t" << *IVCount << "\n");
|
|
||||||
|
|
||||||
IRBuilder<> Builder(BI);
|
IRBuilder<> Builder(BI);
|
||||||
|
|
||||||
// The new loop exit condition should reuse the debug location of the
|
// The new loop exit condition should reuse the debug location of the
|
||||||
@ -2538,6 +2531,14 @@ linearFunctionTestReplace(Loop *L, BasicBlock *ExitingBB,
|
|||||||
"lftr.wideiv");
|
"lftr.wideiv");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
LLVM_DEBUG(dbgs() << "INDVARS: Rewriting loop exit condition to:\n"
|
||||||
|
<< " LHS:" << *CmpIndVar << '\n'
|
||||||
|
<< " op:\t" << (P == ICmpInst::ICMP_NE ? "!=" : "==")
|
||||||
|
<< "\n"
|
||||||
|
<< " RHS:\t" << *ExitCnt << "\n"
|
||||||
|
<< " IVCount:\t" << *IVCount << "\n"
|
||||||
|
<< " was: " << *BI->getCondition() << "\n");
|
||||||
|
|
||||||
Value *Cond = Builder.CreateICmp(P, CmpIndVar, ExitCnt, "exitcond");
|
Value *Cond = Builder.CreateICmp(P, CmpIndVar, ExitCnt, "exitcond");
|
||||||
Value *OrigCond = BI->getCondition();
|
Value *OrigCond = BI->getCondition();
|
||||||
// It's tempting to use replaceAllUsesWith here to fully replace the old
|
// It's tempting to use replaceAllUsesWith here to fully replace the old
|
||||||
|
Loading…
x
Reference in New Issue
Block a user