Skip to content

Commit c30b2ce

Browse files
committed
Address comment and migrate testcases to vp-cast
1 parent 9503976 commit c30b2ce

File tree

3 files changed

+1005
-604
lines changed

3 files changed

+1005
-604
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
10291029
std::optional<unsigned> FOp =
10301030
VPIntrinsic::getFunctionalOpcodeForVP(ICA.getID());
10311031
if (FOp && !ICA.getArgTypes().empty())
1032-
return getCastInstrCost(*FOp, ICA.getReturnType(), ICA.getArgTypes()[0],
1032+
return getCastInstrCost(*FOp, RetTy, ICA.getArgTypes()[0],
10331033
TTI::CastContextHint::None, CostKind);
10341034
break;
10351035
}

0 commit comments

Comments
 (0)