[all-commits] [llvm/llvm-project] 884c03: [LV] Return Invalid from getLegacyCost when instru...
Kerry McLaughlin via All-commits
all-commits at lists.llvm.org
Tue Aug 26 02:27:18 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 884c03e71bf9ae6a36a578e025b2e9f19dd392c2
https://github.com/llvm/llvm-project/commit/884c03e71bf9ae6a36a578e025b2e9f19dd392c2
Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
Date: 2025-08-26 (Tue, 26 Aug 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/test/Transforms/LoopVectorize/AArch64/force-target-instruction-cost.ll
Log Message:
-----------
[LV] Return Invalid from getLegacyCost when instruction cost forced. (#154543)
LoopVectorizationCostModel::expectedCost will only override the cost
returned by getInstructionCost when valid. This patch ensures we do
the same in VPCostContext::getLegacyCost, avoiding the "VPlan cost
model and legacy cost model disagreed" assert in the included test.
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