Skip to content

Commit 3bde19b

Browse files
committed
Fixup! Passing FMF flags.
1 parent b17f8c8 commit 3bde19b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,12 +1202,9 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
12021202
VPIntrinsic::getFunctionalIntrinsicIDForVP(ICA.getID());
12031203
assert(RedID.has_value());
12041204
unsigned RedOp = getArithmeticReductionInstruction(*RedID);
1205-
if (RedOp == Instruction::FAdd || RedOp == Instruction::FMul)
1206-
return getArithmeticReductionCost(RedOp,
1207-
cast<VectorType>(ICA.getArgTypes()[1]),
1208-
ICA.getFlags(), CostKind);
1209-
return getArithmeticReductionCost(
1210-
RedOp, cast<VectorType>(ICA.getArgTypes()[1]), std::nullopt, CostKind);
1205+
return getArithmeticReductionCost(RedOp,
1206+
cast<VectorType>(ICA.getArgTypes()[1]),
1207+
ICA.getFlags(), CostKind);
12111208
}
12121209
case Intrinsic::vp_reduce_smax:
12131210
case Intrinsic::vp_reduce_smin:

0 commit comments

Comments
 (0)