[llvm-branch-commits] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)
Florian Hahn via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Aug 10 13:36:49 PDT 2025
================
@@ -1347,6 +1354,11 @@ class TargetTransformInfo {
PartialReductionExtendKind OpBExtend, std::optional<unsigned> BinOp,
TTI::TargetCostKind CostKind) const;
+ /// \return true if a mask should be formed that disables lanes that could
+ /// alias between two pointers. The mask is created by the
+ /// loop_dependence_{war,raw}_mask intrinsics.
+ LLVM_ABI bool useSafeEltsMask(ElementCount VF) const;
----------------
fhahn wrote:
Could we just check the cost of the new intrinsic using the existing hooks?
https://github.com/llvm/llvm-project/pull/100579
More information about the llvm-branch-commits
mailing list