Skip to content

Commit 8643b31

Browse files
author
Konstantin
committed
Skip debug machine instructions in AMDGPU SIWholeQuadMode pass.
1 parent 94821ce commit 8643b31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,12 @@ void SIWholeQuadMode::processBlock(MachineBasicBlock &MBB, BlockInfo &BI,
13001300

13011301
for (unsigned Idx = 0;; ++Idx) {
13021302
MachineBasicBlock::iterator Next = II;
1303+
1304+
if (II != IE && II->isDebugInstr()) {
1305+
II = ++Next;
1306+
continue;
1307+
}
1308+
13031309
char Needs = StateExact | StateWQM; // Strict mode is disabled by default.
13041310
char OutNeeds = 0;
13051311

0 commit comments

Comments
 (0)