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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 03:52:18 PDT 2026


================
@@ -250,7 +267,9 @@ class SIInsertHardClauses {
               // We also lie about the Offset and OffsetIsScalable parameters,
               // as they aren't used in the SIInstrInfo implementation.
               !SII->shouldClusterMemOps(CI.BaseOps, 0, false, BaseOps, 0, false,
-                                        2, 2)))) {
+                                        2, 2))) ||
+            (CI.Length && ST->hasGFX1250_STRICT() &&
----------------
jayfoad wrote:

Looks a bit odd that you are doing some architecture checks here, and some inside isIncompatibleScope.

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


More information about the llvm-commits mailing list