[llvm] [AMDGPU] Prevent clauses with incompatible scopes on gfx1250-strict (PR #218788)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 23:03:32 PDT 2026


================
@@ -190,6 +190,23 @@ class SIInsertHardClauses {
     return true;
   }
 
+  // \return if scopes are different on gfx1250 and disallowed to be claused.
+  bool incompatibleScope(const MachineInstr &MI1, const MachineInstr &MI2,
+                         const SIInstrInfo *SII) const {
+    if (ST->getGeneration() != AMDGPUSubtarget::GFX12 || !ST->hasGFX1250Insts())
----------------
rampitec wrote:

But given the way it is called you are right, changed.

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


More information about the llvm-commits mailing list