[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
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2022-06-21 (Tue, 21 Jun 2022)
[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