Skip to content

Commit 48783dc

Browse files
committed
Renamed function to getIdentityValueForWaveReduction
1 parent 29bb614 commit 48783dc

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
@@ -4940,7 +4940,7 @@ static MachineBasicBlock *emitIndirectDst(MachineInstr &MI,
49404940
return LoopBB;
49414941
}
49424942

4943-
static uint32_t getInitialValueForWaveReduction(unsigned Opc) {
4943+
static uint32_t getIdentityValueForWaveReduction(unsigned Opc) {
49444944
switch (Opc) {
49454945
case AMDGPU::S_MIN_U32:
49464946
return std::numeric_limits<uint32_t>::max();
@@ -4958,7 +4958,7 @@ static uint32_t getInitialValueForWaveReduction(unsigned Opc) {
49584958
case AMDGPU::S_AND_B32:
49594959
return std::numeric_limits<uint32_t>::max();
49604960
default:
4961-
llvm_unreachable("Unexpected opcode in getInitialValueForWaveReduction");
4961+
llvm_unreachable("Unexpected opcode in getIdentityValueForWaveReduction");
49624962
}
49634963
}
49644964

@@ -5085,7 +5085,7 @@ static MachineBasicBlock *lowerWaveReduce(MachineInstr &MI,
50855085

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

0 commit comments

Comments
 (0)