@@ -788,7 +788,8 @@ isPKF32InstrReplicatingLow32BitsOfScalarInput(const GCNSubtarget *ST,
788788// Packed FP32 instructions only read 32 bits from a scalar operand (SGPR or
789789// literal) and replicates the bits to both channels. Therefore, if the hi and
790790// lo are not same, we can't fold it.
791- static bool checkImmOpForPKF32Instr (const FoldableDef &OpToFold) {
791+ static bool checkImmOpForPKF32InstrReplicatingLow32BitsOfScalarInput (
792+ const FoldableDef &OpToFold) {
792793 assert (OpToFold.isImm () && " Expected immediate operand" );
793794 uint64_t ImmVal = OpToFold.getEffectiveImmVal ().value ();
794795 uint32_t Lo = Lo_32 (ImmVal);
@@ -953,7 +954,7 @@ bool SIFoldOperandsImpl::tryAddToFoldList(
953954 // src0 or src1.
954955 if (OpToFold.isImm () &&
955956 isPKF32InstrReplicatingLow32BitsOfScalarInput (ST, MI) &&
956- !checkImmOpForPKF32Instr (OpToFold))
957+ !checkImmOpForPKF32InstrReplicatingLow32BitsOfScalarInput (OpToFold))
957958 return false ;
958959
959960 appendFoldCandidate (FoldList, MI, OpNo, OpToFold);
@@ -1172,7 +1173,7 @@ bool SIFoldOperandsImpl::tryToFoldACImm(
11721173
11731174 if (OpToFold.isImm () && OpToFold.isOperandLegal (*TII, *UseMI, UseOpIdx)) {
11741175 if (isPKF32InstrReplicatingLow32BitsOfScalarInput (ST, UseMI) &&
1175- !checkImmOpForPKF32Instr (OpToFold))
1176+ !checkImmOpForPKF32InstrReplicatingLow32BitsOfScalarInput (OpToFold))
11761177 return false ;
11771178 appendFoldCandidate (FoldList, UseMI, UseOpIdx, OpToFold);
11781179 return true ;
0 commit comments