[llvm-branch-commits] [llvm] [LV] Mask off possibly aliasing vector	lanes (PR #100579)
    Sam Tebbs via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Thu Aug  7 02:54:26 PDT 2025
    
    
  
================
@@ -974,6 +974,11 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
     }
     break;
   }
+  case Intrinsic::loop_dependence_raw_mask:
+  case Intrinsic::loop_dependence_war_mask:
+    if (ST->hasSVE2())
+      return 1;
+    return InstructionCost::getInvalid(CostKind);
----------------
SamTebbs33 wrote:
The intrinsics do expand into a [lot of instructions](https://github.com/llvm/llvm-project/pull/117007/files#diff-d7065626b3d269e24241429ce037d51fc91d5ead5896d67fcc038aefc1111fd2R1806), so I'm keen to hear people's opinions on whether invalid is better than calculating the cost of them, since that will probably be very high.
https://github.com/llvm/llvm-project/pull/100579
    
    
More information about the llvm-branch-commits
mailing list