[all-commits] [llvm/llvm-project] 59a67e: [SLP]Improve costs in computeExtractCost() to avoi...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Thu Sep 28 09:43:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 59a67ea35d608480257fc64ec3e5106ef50de740
https://github.com/llvm/llvm-project/commit/59a67ea35d608480257fc64ec3e5106ef50de740
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-09-28 (Thu, 28 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat-inseltpoison.ll
M llvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat.ll
M llvm/test/Transforms/SLPVectorizer/AMDGPU/crash_extract_subvector_cost.ll
M llvm/test/Transforms/SLPVectorizer/AMDGPU/phi-result-use-order.ll
M llvm/test/Transforms/SLPVectorizer/RISCV/math-function.ll
M llvm/test/Transforms/SLPVectorizer/X86/alternate-calls-inseltpoison.ll
M llvm/test/Transforms/SLPVectorizer/X86/alternate-calls.ll
M llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll
M llvm/test/Transforms/SLPVectorizer/X86/hadd-inseltpoison.ll
M llvm/test/Transforms/SLPVectorizer/X86/hadd.ll
M llvm/test/Transforms/SLPVectorizer/X86/hsub-inseltpoison.ll
M llvm/test/Transforms/SLPVectorizer/X86/hsub.ll
M llvm/test/Transforms/SLPVectorizer/X86/reduction-transpose.ll
Log Message:
-----------
[SLP]Improve costs in computeExtractCost() to avoid crash after D158449.
Need to consider the length of the original vector for extractelements,
not the length, matched number of the scalars. It fixes 2 issues: 1)
improves cost estimation; 2) Fixes crashes after D158449.
More information about the All-commits
mailing list