[llvm] [RISCV] Cost UDIV/UREM by a constant power of 2 as a SHL/AND in getArithmeticInstrCost() (PR #179570)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 16:57:09 PDT 2026
================
@@ -2669,6 +2669,27 @@ RISCVTTIImpl::getIndexedVectorInstrCostFromEnd(unsigned Opcode, Type *Val,
nullptr);
}
+std::optional<InstructionCost>
+RISCVTTIImpl::getConvertedArithmeticInstructionCost(
----------------
topperc wrote:
I think you should add a comment. Just reading the name, I don't know what "converted" means.
https://github.com/llvm/llvm-project/pull/179570
More information about the llvm-commits
mailing list