diff options
author | Alexey Bataev <a.bataev@outlook.com> | 2023-09-22 06:52:40 -0700 |
---|---|---|
committer | Alexey Bataev <a.bataev@outlook.com> | 2023-09-29 07:48:02 -0700 |
commit | 019aee832768b0704048905cd8ce20299e7e0b25 (patch) | |
tree | 10a833a5b91503c5cb2355c0704b926d42f8aac2 /clang/lib/Basic/SourceManager.cpp | |
parent | cc696627657c422f8d580354a76d32fda0f0157f (diff) | |
download | llvm-019aee832768b0704048905cd8ce20299e7e0b25.zip llvm-019aee832768b0704048905cd8ce20299e7e0b25.tar.gz llvm-019aee832768b0704048905cd8ce20299e7e0b25.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions