[llvm] [AMDGPU] Prevent folding of FMAC into FMAAK with two literals (PR #217438)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 03:33:47 PDT 2026
================
@@ -4001,6 +4001,10 @@ bool SIInstrInfo::foldImmediate(MachineInstr &UseMI, MachineInstr &DefMI,
if (pseudoToMCOpcode(NewOpc) == -1)
return false;
+ if ((Src0->isImm() && !isInlineConstant(*Src0)) ||
----------------
jayfoad wrote:
isOperandLegal in SIInstrInfo
https://github.com/llvm/llvm-project/pull/217438
More information about the llvm-commits
mailing list