[llvm-branch-commits] [llvm] [SLP] Pass a lane as the vector cost context only if all lanes agree (PR #241758)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 12 03:15:27 PST 2026
michaelselehov wrote:
I brought back the X86 urem test, as discussed above. It now has two RUN lines. On x86-64 the urem stays scalar with this patch: a vector urem has no cheap lowering there (cost 2000), and before this patch only the udiv in lane 0 made the whole vector free. On znver5 a vector urem is cheap (cost 8), so the bundle is vectorized before and after this patch.
https://github.com/llvm/llvm-project/pull/241758
More information about the llvm-branch-commits
mailing list