[llvm] [SLP] Bail out on store-to-load forwarding hazards (PR #199606)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 05:47:58 PDT 2026
================
@@ -874,6 +880,15 @@ unsigned TargetTransformInfo::getCacheLineSize() const {
: TTIImpl->getCacheLineSize();
}
+InstructionCost TargetTransformInfo::getStoreLoadForwardingConflictCost(
+ Type *VecTy, TargetCostKind CostKind) const {
+ // A negative override means "unset"; fall back to the target's value.
+ if (StoreLoadForwardingConflictCost.getNumOccurrences() > 0 &&
+ StoreLoadForwardingConflictCost >= 0)
----------------
alexey-bataev wrote:
```suggestion
if (StoreLoadForwardingConflictCost >= 0)
```
https://github.com/llvm/llvm-project/pull/199606
More information about the llvm-commits
mailing list