Skip to content

Commit 792a0c3

Browse files
committed
Renamed function to getIdentityValueForWaveReduction
1 parent 5af5499 commit 792a0c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5038,7 +5038,7 @@ static MachineBasicBlock *emitIndirectDst(MachineInstr &MI,
50385038
return LoopBB;
50395039
}
50405040

5041-
static uint32_t getInitialValueForWaveReduction(unsigned Opc) {
5041+
static uint32_t getIdentityValueForWaveReduction(unsigned Opc) {
50425042
switch (Opc) {
50435043
case AMDGPU::S_MIN_U32:
50445044
return std::numeric_limits<uint32_t>::max();
@@ -5056,7 +5056,7 @@ static uint32_t getInitialValueForWaveReduction(unsigned Opc) {
50565056
case AMDGPU::S_AND_B32:
50575057
return std::numeric_limits<uint32_t>::max();
50585058
default:
5059-
llvm_unreachable("Unexpected opcode in getInitialValueForWaveReduction");
5059+
llvm_unreachable("Unexpected opcode in getIdentityValueForWaveReduction");
50605060
}
50615061
}
50625062

@@ -5184,7 +5184,7 @@ static MachineBasicBlock *lowerWaveReduce(MachineInstr &MI,
51845184

51855185
// Create initail values of induction variable from Exec, Accumulator and
51865186
// insert branch instr to newly created ComputeBlock
5187-
uint32_t InitalValue = getInitialValueForWaveReduction(Opc);
5187+
uint32_t InitalValue = getIdentityValueForWaveReduction(Opc);
51885188
auto TmpSReg =
51895189
BuildMI(BB, I, DL, TII->get(MovOpc), LoopIterator).addReg(ExecReg);
51905190
BuildMI(BB, I, DL, TII->get(AMDGPU::S_MOV_B32), InitalValReg)

0 commit comments

Comments
 (0)