aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@outlook.com>2023-09-22 06:52:40 -0700
committerAlexey Bataev <a.bataev@outlook.com>2023-09-29 07:48:02 -0700
commit019aee832768b0704048905cd8ce20299e7e0b25 (patch)
tree10a833a5b91503c5cb2355c0704b926d42f8aac2 /clang/lib/Basic/SourceManager.cpp
parentcc696627657c422f8d580354a76d32fda0f0157f (diff)
downloadllvm-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