Skip to content

Commit 6394b9f

Browse files
committed
clang
1 parent b18e409 commit 6394b9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,9 +1801,9 @@ bool SPIRVInstructionSelector::selectWaveActiveMax(Register ResVReg,
18011801
SPIRVType *IntTy = GR.getOrCreateSPIRVIntegerType(32, I, TII);
18021802
// Retreive the operation to use based on input type
18031803
bool IsFloatTy = GR.isScalarOrVectorOfType(InputRegister, SPIRV::OpTypeFloat);
1804-
auto Opcode =
1805-
IsFloatTy ? SPIRV::OpGroupNonUniformFMax : (IsSigned ?
1806-
SPIRV::OpGroupNonUniformSMax : SPIRV::OpGroupNonUniformUMax);
1804+
auto Opcode = IsFloatTy ? SPIRV::OpGroupNonUniformFMax
1805+
: (IsSigned ? SPIRV::OpGroupNonUniformSMax
1806+
: SPIRV::OpGroupNonUniformUMax);
18071807
return BuildMI(BB, I, I.getDebugLoc(), TII.get(Opcode))
18081808
.addDef(ResVReg)
18091809
.addUse(GR.getSPIRVTypeID(ResType))

0 commit comments

Comments
 (0)