[llvm-branch-commits] [llvm] [AMDGPU] Add wave reduce intrinsics for double types - 2 (PR #170812)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 28 08:36:06 PST 2026
================
@@ -5973,8 +6026,11 @@ static MachineBasicBlock *lowerWaveReduce(MachineInstr &MI,
BuildMI(*ComputeLoop, I, DL, TII->get(AMDGPU::V_MOV_B64_PSEUDO),
AccumulatorVReg)
.addReg(Accumulator->getOperand(0).getReg());
+ unsigned Modifier = SISrcMods::NONE;
+ if (MI.getOpcode() == AMDGPU::WAVE_REDUCE_FSUB_PSEUDO_F64)
+ Modifier = SISrcMods::NEG;
----------------
arsenm wrote:
Initialize from ternary operator
https://github.com/llvm/llvm-project/pull/170812
More information about the llvm-branch-commits
mailing list