[llvm] [WIP][RISCV] Tune flag for fast vrgather.vv (PR #124664)
Petr Penzin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 09:32:13 PST 2025
================
@@ -2848,6 +2848,11 @@ InstructionCost RISCVTargetLowering::getLMULCost(MVT VT) const {
/// is generally quadratic in the number of vreg implied by LMUL. Note that
/// operand (index and possibly mask) are handled separately.
InstructionCost RISCVTargetLowering::getVRGatherVVCost(MVT VT) const {
+ auto LMULCost = getLMULCost(VT);
+ if (true && Subtarget.hasFastVRGather() && LMULCost.isValid()) {
----------------
ppenzin wrote:
Addressed, I guess I should've checked the change _after_ applying it to my public fork...
https://github.com/llvm/llvm-project/pull/124664
More information about the llvm-commits
mailing list