File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1353,7 +1353,13 @@ bool WaitcntGeneratorPreGFX12::applyPreexistingWaitcnt(
1353
1353
MachineInstr *WaitcntInstr = nullptr ;
1354
1354
MachineInstr *WaitcntVsCntInstr = nullptr ;
1355
1355
1356
- LLVM_DEBUG (dbgs () << " PreGFX12::applyPreexistingWaitcnt at: " << *It);
1356
+ LLVM_DEBUG ({
1357
+ dbgs () << " PreGFX12::applyPreexistingWaitcnt at: " ;
1358
+ if (It == OldWaitcntInstr.getParent ()->instr_end ())
1359
+ dbgs () << " end of block\n " ;
1360
+ else
1361
+ dbgs () << *It;
1362
+ });
1357
1363
1358
1364
for (auto &II :
1359
1365
make_early_inc_range (make_range (OldWaitcntInstr.getIterator (), It))) {
@@ -1507,7 +1513,13 @@ bool WaitcntGeneratorGFX12Plus::applyPreexistingWaitcnt(
1507
1513
MachineInstr *CombinedStoreDsCntInstr = nullptr ;
1508
1514
MachineInstr *WaitInstrs[NUM_EXTENDED_INST_CNTS] = {};
1509
1515
1510
- LLVM_DEBUG (dbgs () << " GFX12Plus::applyPreexistingWaitcnt at: " << *It);
1516
+ LLVM_DEBUG ({
1517
+ dbgs () << " GFX12Plus::applyPreexistingWaitcnt at: " ;
1518
+ if (It == OldWaitcntInstr.getParent ()->instr_end ())
1519
+ dbgs () << " end of block\n " ;
1520
+ else
1521
+ dbgs () << *It;
1522
+ });
1511
1523
1512
1524
for (auto &II :
1513
1525
make_early_inc_range (make_range (OldWaitcntInstr.getIterator (), It))) {
You can’t perform that action at this time.
0 commit comments