[llvm] [LV][TTI] Calculate cost of extracting last index in a scalable vector (PR #144086)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 08:21:05 PDT 2025


paulwalker-arm wrote:

Given my faux par, as a counter recommendation what about splitting the index in two.  Pass the index as an  ElementCount and have another parameter to set the direction.  This has the advantages I mention above and for the last index you'd use an index of 0 with a direction paramater of back/tail/reverse etc.

https://github.com/llvm/llvm-project/pull/144086


More information about the llvm-commits mailing list