[llvm] [AMDGPU] Mitigate GFX12 VALU read SGPR hazard (PR #100067)

Carl Ritson via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 00:06:48 PDT 2024


================
@@ -2759,6 +2762,36 @@ bool GCNHazardRecognizer::ShouldPreferAnother(SUnit *SU) {
   return false;
 }
 
+// Adjust global offsets for instructions bundled with S_GETPC_B64 after
+// insertion of a new instruction.
+static void updateGetPCBundle(MachineInstr *NewMI) {
----------------
perlfu wrote:

Refactoring out common code between these and similar GFX11 hazard.

https://github.com/llvm/llvm-project/pull/100067


More information about the llvm-commits mailing list