diff --git a/llvm/lib/Target/AMDGPU/SMInstructions.td b/llvm/lib/Target/AMDGPU/SMInstructions.td index 252f191a2f66..df21c864ccad 100644 --- a/llvm/lib/Target/AMDGPU/SMInstructions.td +++ b/llvm/lib/Target/AMDGPU/SMInstructions.td @@ -860,7 +860,7 @@ let OtherPredicates = [HasNoSMemTimeInst] in { def : GCNPat < (i64 (readcyclecounter)), (REG_SEQUENCE SReg_64, - (S_GETREG_B32 getHwRegImm.ret), sub0, + (S_GETREG_B32 -26595), sub0, (S_MOV_B32 (i32 0)), sub1) >; } // let OtherPredicates = [HasNoSMemTimeInst]