[llvm] [AMDGPU] Add verifier for flat_scr_base_hi read hazard (PR #170550)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 17:53:39 PST 2025
================
@@ -5808,6 +5808,17 @@ bool SIInstrInfo::verifyInstruction(const MachineInstr &MI,
}
}
+ if (ST.hasFlatScratchHiInB64InstHazard() && isSALU(MI) &&
+ MI.readsRegister(AMDGPU::SRC_FLAT_SCRATCH_BASE_HI, nullptr)) {
----------------
rampitec wrote:
nullptr here is intentional, I do not mean to include 64-bit SRC_FLAT_SCRATCH_BASE.
https://github.com/llvm/llvm-project/pull/170550
More information about the llvm-commits
mailing list