Skip to content

Commit 32c2393

Browse files
authored
[AMDGPU] Handle S_GETREG_B32_const in the hazard recognizer. NFCI (#160364)
1 parent adbcd89 commit 32c2393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static bool isDivFMas(unsigned Opcode) {
8282
}
8383

8484
static bool isSGetReg(unsigned Opcode) {
85-
return Opcode == AMDGPU::S_GETREG_B32;
85+
return Opcode == AMDGPU::S_GETREG_B32 || Opcode == AMDGPU::S_GETREG_B32_const;
8686
}
8787

8888
static bool isSSetReg(unsigned Opcode) {

0 commit comments

Comments
 (0)