[llvm] [AMDGPU] Do not commute DPP instructions with a non-identity dpp_ctrl (PR #218393)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 01:49:21 PDT 2026
================
@@ -2898,11 +2898,21 @@ bool SIInstrInfo::isLegalToSwap(const MachineInstr &MI, unsigned OpIdx0,
return isImmOperandLegal(MI, OpIdx1, MO0);
}
+bool SIInstrInfo::isCommutableDPP(const MachineInstr &MI) const {
+ if (!isDPP(MI))
+ return true;
----------------
aobolensk wrote:
Done
https://github.com/llvm/llvm-project/pull/218393
More information about the llvm-commits
mailing list