aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2025-01-02 14:31:36 +0000
committerGitHub <noreply@github.com>2025-01-02 14:31:36 +0000
commit073e65a8e5f92ca9c63c3fcd1c0ce2a36913f9a6 (patch)
tree7cf45113e19f07ccf6186cb048abce6ee5dc7056 /clang/lib/Frontend/CompilerInvocation.cpp
parent6d604ba36326de849ccf00f30351ce21fde19471 (diff)
downloadllvm-073e65a8e5f92ca9c63c3fcd1c0ce2a36913f9a6.zip
llvm-073e65a8e5f92ca9c63c3fcd1c0ce2a36913f9a6.tar.gz
llvm-073e65a8e5f92ca9c63c3fcd1c0ce2a36913f9a6.tar.bz2
[LoopVectorize] Make needsExtract notice scalarized instructions (#119720)
LoopVectorizationCostModel::needsExtract should recognise instructions that have been widened by scalarizing as scalar instructions, and thus not needing an extract when used by later scalarized instructions. This fixes an incorrect cost calculation in computePredInstDiscount, where we are adding a scalarization overhead cost when we shouldn't, though I haven't come up with a test case where it makes a difference. It will make a difference when the cost model switches to using the cost kind TCK_CodeSize for optsize, as not doing this causes the test LoopVectorize/X86/small-size.ll to get worse.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions