[llvm] Adding change to IndVarSimplify pass to optimize IVs stuck in trivial vector operations (PR #122248)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 03:57:01 PST 2025
nikic wrote:
Thanks. I think in your particular case, I suspect it probably makes sense to scalarize the vector op independently of whether it contains an induction variable? This case creates a splat vector, does a vector add and then immediately extracts both elements. It seems unlikely that this is going to be faster than just doing two adds on any architecture.
https://github.com/llvm/llvm-project/pull/122248
More information about the llvm-commits
mailing list