[all-commits] [llvm/llvm-project] f1ee27: [SLP]Fix a crash when insert subvector is out of r...
Andrew V. Tischenko via All-commits
all-commits at lists.llvm.org
Tue Jun 21 07:19:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1ee2738b3d70fea803ac1f3401c2fc9f61e514a
https://github.com/llvm/llvm-project/commit/f1ee2738b3d70fea803ac1f3401c2fc9f61e514a
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2022-06-21 (Tue, 21 Jun 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/AArch64/buildvector-vectorize.ll
Log Message:
-----------
[SLP]Fix a crash when insert subvector is out of range.
If the OffsetBeg + InsertVecSz is greater than VecSz, need to estimate
the cost as shuffle of 2 vector, not as insert of subvector. Otherwise,
the inserted subvector is out of range and compiler may crash.
Differential Revision: https://reviews.llvm.org/D128071
More information about the All-commits
mailing list