[llvm] [AMDGPU] Prevent clauses with incompatible scopes on gfx1250-strict (PR #218788)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 17:57:48 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())
----------------
shiltian wrote:
It seems like this should be an assertion instead of a check, given how it is called.
https://github.com/llvm/llvm-project/pull/218788
More information about the llvm-commits
mailing list