diff options
author | Alexey Bataev <a.bataev@outlook.com> | 2022-06-17 10:23:12 -0700 |
---|---|---|
committer | Alexey Bataev <a.bataev@outlook.com> | 2022-06-21 07:16:35 -0700 |
commit | f1ee2738b3d70fea803ac1f3401c2fc9f61e514a (patch) | |
tree | 59e04e81a8b09b7dc54bd7012a797e089ae88a62 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | ac4cb1775b8f40be2809245b818993a576639c1f (diff) | |
download | llvm-f1ee2738b3d70fea803ac1f3401c2fc9f61e514a.zip llvm-f1ee2738b3d70fea803ac1f3401c2fc9f61e514a.tar.gz llvm-f1ee2738b3d70fea803ac1f3401c2fc9f61e514a.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions