[all-commits] [llvm/llvm-project] 0aac22: [LV] Correctly cost chains of replicating calls in...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Aug 31 07:14:26 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0aac22758a81a98d9612ed1ad4853d9e434e8451
https://github.com/llvm/llvm-project/commit/0aac22758a81a98d9612ed1ad4853d9e434e8451
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-08-31 (Sun, 31 Aug 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
A llvm/test/Transforms/LoopVectorize/X86/cost-conditional-branches.ll
M llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
Log Message:
-----------
[LV] Correctly cost chains of replicating calls in legacy CM.
Check for scalarized calls in needsExtract to fix a divergence between
legacy and VPlan-based cost model.
The legacy cost model was missing a check for scalarized calls in
needsExtract, which meant if incorrectly assumed the result of a
scalarized call needs extracting.
Exposed by https://github.com/llvm/llvm-project/pull/154617.
Fixes https://github.com/llvm/llvm-project/issues/156091.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list