[llvm] [SLP] Reject 2-element vectorization when vector inst count exceeds scalar (PR #190414)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 5 05:26:07 PDT 2026
alexey-bataev wrote:
> Would it be better to take a step back and see if we can improve instruction costs properly to handle sub-1.0 throughputs instead of adding yet another workaround to SLP?
>
> We've already tentatively started this with #178962 - should we consider replacing the InstructionCost::CostType int64_t with a APFixedPoint entirely - something like an 60.4 fixed point type (or even make the FixedPointSemantics target specific?) - and then the cost tables can be tweaked later to handle this.
>
> CC @bababuck
The problem is that it make require a lot of work and we need some fix before this work is landed. Plus, it requires not just fractional costs, but also TTI fixes with the fractional costs. I will add a FIXME to remove this workaround once we properly support fractional costs.
https://github.com/llvm/llvm-project/pull/190414
More information about the llvm-commits
mailing list