[all-commits] [llvm/llvm-project] b3480d: [SLP] Compute min/max scalar reduction costs using...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Apr 13 09:00:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3480d5ede83720abf58dcadf4e79015e5a7e60a
https://github.com/llvm/llvm-project/commit/b3480d5ede83720abf58dcadf4e79015e5a7e60a
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-04-13 (Thu, 13 Apr 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll
M llvm/test/Transforms/SLPVectorizer/X86/reorder_repeated_ops.ll
M llvm/test/Transforms/SLPVectorizer/X86/vectorize-reorder-reuse.ll
Log Message:
-----------
[SLP] Compute min/max scalar reduction costs using min/max intrinsics instead of expanded cmp+sel
By default these will expand back to cmp/sel, but some targets (X86) has optimized costs for scalar integer min/max patterns which are lower than the default expansion (pre-SSE41 is particularly weak for vector min/max support).
Differential Revision: [SLP] Compute min/max scalar reduction costs using min/max intrinsics instead of expanded cmp+sel
More information about the All-commits
mailing list