mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
785badb83e
commit
95ba669e09
@ -1056,10 +1056,13 @@ ReoptimizeBlock:
|
||||
!MBB->hasAddressTaken() && !MBB->isLandingPad()) {
|
||||
DEBUG(dbgs() << "\nMerging into block: " << PrevBB
|
||||
<< "From MBB: " << *MBB);
|
||||
// Remove redundant DBG_VALUEs first.
|
||||
if (PrevBB.begin() != PrevBB.end()) {
|
||||
MachineBasicBlock::iterator PrevBBIter = PrevBB.end();
|
||||
--PrevBBIter;
|
||||
MachineBasicBlock::iterator MBBIter = MBB->begin();
|
||||
// Check if DBG_VALUE at the end of PrevBB is identical to the
|
||||
// DBG_VALUE at the beginning of MBB.
|
||||
while (PrevBBIter != PrevBB.begin() && MBBIter != MBB->end()
|
||||
&& PrevBBIter->isDebugValue() && MBBIter->isDebugValue()) {
|
||||
if (!MBBIter->isIdenticalTo(PrevBBIter))
|
||||
|
Loading…
x
Reference in New Issue
Block a user