Skip to content

Commit e682e00

Browse files
committed
Remove the condition for sqrts
1 parent 48dfe67 commit e682e00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
10601060
if (ST->hasVInstructions() && LT.second.isVector()) {
10611061
SmallVector<unsigned, 3> Opcodes;
10621062
// f16 with zvfhmin and bf16 with zvfbfmin
1063-
if (LT.second.getVectorElementType() == MVT::bf16 &&
1064-
ST->hasVInstructionsBF16Minimal())
1063+
if (LT.second.getVectorElementType() == MVT::bf16)
10651064
Opcodes = {RISCV::VFWCVTBF16_F_F_V, RISCV::VFSQRT_V,
10661065
RISCV::VFNCVTBF16_F_F_W};
10671066
else if (LT.second.getVectorElementType() == MVT::f16 &&

0 commit comments

Comments
 (0)