Skip to content

Commit 313eedb

Browse files
broxigarchenSisyph
andauthored
Update llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Co-authored-by: Joe Nash <[email protected]>
1 parent f66c4f8 commit 313eedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ RegInterval WaitcntBrackets::getRegInterval(const MachineInstr *MI,
847847
Result.second = Result.first + (Size / 16);
848848

849849
if (Size == 16 && Context->ST->has16bitD16HWBug()) {
850-
// also update the other half since lo16/hi16 interfere with each other
850+
// Regardless of which lo16/hi16 is used, consider the full 32-bit register used.
851851
if (AMDGPU::isHi16Reg(MCReg, *TRI))
852852
Result.first -= 1;
853853
else

0 commit comments

Comments
 (0)