@@ -1695,18 +1695,17 @@ bool SPIRVInstructionSelector::selectIntegerDot(Register ResVReg,
16951695
16961696 auto DotOp = Signed ? SPIRV::OpSDot : SPIRV::OpUDot;
16971697 return BuildMI (BB, I, I.getDebugLoc (), TII.get (DotOp))
1698- .addDef (ResVReg)
1699- .addUse (GR.getSPIRVTypeID (ResType))
1700- .addUse (I.getOperand (2 ).getReg ())
1701- .addUse (I.getOperand (3 ).getReg ())
1702- .constrainAllUses (TII, TRI, RBI);
1698+ .addDef (ResVReg)
1699+ .addUse (GR.getSPIRVTypeID (ResType))
1700+ .addUse (I.getOperand (2 ).getReg ())
1701+ .addUse (I.getOperand (3 ).getReg ())
1702+ .constrainAllUses (TII, TRI, RBI);
17031703}
17041704
17051705// Since pre-1.6 SPIRV has no integer dot implementation,
17061706// expand by piecewise multiplying and adding the results
1707- bool SPIRVInstructionSelector::selectIntegerDotExpansion (Register ResVReg,
1708- const SPIRVType *ResType,
1709- MachineInstr &I) const {
1707+ bool SPIRVInstructionSelector::selectIntegerDotExpansion (
1708+ Register ResVReg, const SPIRVType *ResType, MachineInstr &I) const {
17101709 assert (I.getNumOperands () == 4 );
17111710 assert (I.getOperand (2 ).isReg ());
17121711 assert (I.getOperand (3 ).isReg ());
@@ -2704,7 +2703,8 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
27042703 case Intrinsic::spv_sdot:
27052704 if (STI.canUseExtension (SPIRV::Extension::SPV_KHR_integer_dot_product) ||
27062705 STI.isAtLeastSPIRVVer (VersionTuple (1 , 6 )))
2707- return selectIntegerDot (ResVReg, ResType, I, /* Signed=*/ IID == Intrinsic::spv_sdot);
2706+ return selectIntegerDot (ResVReg, ResType, I,
2707+ /* Signed=*/ IID == Intrinsic::spv_sdot);
27082708 return selectIntegerDotExpansion (ResVReg, ResType, I);
27092709 case Intrinsic::spv_dot4add_i8packed:
27102710 if (STI.canUseExtension (SPIRV::Extension::SPV_KHR_integer_dot_product) ||
0 commit comments