[all-commits] [llvm/llvm-project] 851a12: [SLP]Fix the cost for the extractelements, used in...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Fri Apr 21 09:07:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 851a12138a765b43d86bb4729e418ee745375592
https://github.com/llvm/llvm-project/commit/851a12138a765b43d86bb4729e418ee745375592
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-04-21 (Fri, 21 Apr 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/X86/reused-extractelements.ll
Log Message:
-----------
[SLP]Fix the cost for the extractelements, used in several nodes.
Currently the compiler calculates the compensation cost for the
extractelements, removed during vectorization. But if the extractelement
instruction is used in several nodes, we can calculate the compensation
for them several times.
Differential Revision: https://reviews.llvm.org/D148806
More information about the All-commits
mailing list