@@ -1654,18 +1654,17 @@ bool SPIRVInstructionSelector::selectIntegerDot(Register ResVReg,
16541654
16551655 auto DotOp = Signed ? SPIRV::OpSDot : SPIRV::OpUDot;
16561656 return BuildMI (BB, I, I.getDebugLoc (), TII.get (DotOp))
1657- .addDef (ResVReg)
1658- .addUse (GR.getSPIRVTypeID (ResType))
1659- .addUse (I.getOperand (2 ).getReg ())
1660- .addUse (I.getOperand (3 ).getReg ())
1661- .constrainAllUses (TII, TRI, RBI);
1657+ .addDef (ResVReg)
1658+ .addUse (GR.getSPIRVTypeID (ResType))
1659+ .addUse (I.getOperand (2 ).getReg ())
1660+ .addUse (I.getOperand (3 ).getReg ())
1661+ .constrainAllUses (TII, TRI, RBI);
16621662}
16631663
16641664// Since pre-1.6 SPIRV has no integer dot implementation,
16651665// expand by piecewise multiplying and adding the results
1666- bool SPIRVInstructionSelector::selectIntegerDotExpansion (Register ResVReg,
1667- const SPIRVType *ResType,
1668- MachineInstr &I) const {
1666+ bool SPIRVInstructionSelector::selectIntegerDotExpansion (
1667+ Register ResVReg, const SPIRVType *ResType, MachineInstr &I) const {
16691668 assert (I.getNumOperands () == 4 );
16701669 assert (I.getOperand (2 ).isReg ());
16711670 assert (I.getOperand (3 ).isReg ());
@@ -2663,7 +2662,8 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
26632662 case Intrinsic::spv_sdot:
26642663 if (STI.canUseExtension (SPIRV::Extension::SPV_KHR_integer_dot_product) ||
26652664 STI.isAtLeastSPIRVVer (VersionTuple (1 , 6 )))
2666- return selectIntegerDot (ResVReg, ResType, I, /* Signed=*/ IID == Intrinsic::spv_sdot);
2665+ return selectIntegerDot (ResVReg, ResType, I,
2666+ /* Signed=*/ IID == Intrinsic::spv_sdot);
26672667 return selectIntegerDotExpansion (ResVReg, ResType, I);
26682668 case Intrinsic::spv_dot4add_i8packed:
26692669 if (STI.canUseExtension (SPIRV::Extension::SPV_KHR_integer_dot_product) ||
0 commit comments