[llvm] [AMDGPU][True16][CodeGen] optimize codegen for mad-mix in true16 (PR #124995)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 12:58:09 PDT 2025
================
@@ -5841,6 +5841,14 @@ AMDGPUInstructionSelector::selectVOP3PMadMixModsImpl(MachineOperand &Root,
CheckAbsNeg();
}
+ // Since we looked through FPEXT and removed it, we must also remove
+ // G_TRUNC. G_TRUNC to 16-bits would have a destination in RC VGPR_16, which
+ // is not compatible with MadMix instructions
+ Register PeekSrc = Src;
+ if (Subtarget->useRealTrue16Insts() &&
----------------
broxigarchen wrote:
Updated
https://github.com/llvm/llvm-project/pull/124995
More information about the llvm-commits
mailing list