Skip to content

Commit 48b13ca

Browse files
authored
[RISCV][CostModel] cost of vector cttz/ctlz under ZVBB (#115800)
1 parent e4e5206 commit 48b13ca

File tree

2 files changed

+336
-0
lines changed

2 files changed

+336
-0
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,8 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
10131013
return LT.first;
10141014
break;
10151015
}
1016+
case Intrinsic::cttz:
1017+
case Intrinsic::ctlz:
10161018
case Intrinsic::ctpop: {
10171019
auto LT = getTypeLegalizationCost(RetTy);
10181020
if (ST->hasVInstructions() && ST->hasStdExtZvbb() && LT.second.isVector())

0 commit comments

Comments
 (0)