[llvm] [RISCV][TTI] Add cost model for ROTL/ROTR (PR #170824)
Sudharsan Veeravalli via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 09:17:27 PST 2025
================
@@ -1559,6 +1559,20 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
}
break;
}
+ case Intrinsic::fshl:
+ case Intrinsic::fshr: {
+ // Funnel-shifts are ROTL/ROTR when the first and second operand are equal.
----------------
svs-quic wrote:
Thanks I have added that check.
https://github.com/llvm/llvm-project/pull/170824
More information about the llvm-commits
mailing list