[llvm] [AMDGPU][True16][CodeGen] gisel true16 for ICMP (PR #128913)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 08:46:27 PST 2025
================
@@ -1478,10 +1478,21 @@ bool AMDGPUInstructionSelector::selectG_ICMP_or_FCMP(MachineInstr &I) const {
if (Opcode == -1)
return false;
- MachineInstr *ICmp = BuildMI(*BB, &I, DL, TII.get(Opcode),
- I.getOperand(0).getReg())
- .add(I.getOperand(2))
- .add(I.getOperand(3));
+ MachineInstrBuilder ICmp;
+ // t16 instructions
+ if (AMDGPU::hasNamedOperand(Opcode, AMDGPU::OpName::src0_modifiers)) {
----------------
broxigarchen wrote:
I can add an assert in the `if` so that it's more clear when it's broken
https://github.com/llvm/llvm-project/pull/128913
More information about the llvm-commits
mailing list