[all-commits] [llvm/llvm-project] b28f40: [SLP]Improve reduction cost model for scalars.
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Wed Apr 12 11:35:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b28f407df9d0f63ca85cfaeddf9effc024c071d8
https://github.com/llvm/llvm-project/commit/b28f407df9d0f63ca85cfaeddf9effc024c071d8
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-04-12 (Wed, 12 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/horizontal-smax.ll
Log Message:
-----------
[SLP]Improve reduction cost model for scalars.
Instead of abstract cost of the scalar reduction ops, try to use the
cost of actual reduction operation instructions, where possible. Also,
remove the estimation of the vectorized GEPs pointers for reduced loads,
since it is already handled in the tree.
Differential Revision: https://reviews.llvm.org/D148036
More information about the All-commits
mailing list