================
@@ -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);
----------------
sdesmalen-arm wrote:

I would suggest reverting to calling the default cost-model here by doing 
`break;`.

To the question whether to return either an Invalid or a high cost in the 
default cost-model, I would argue for a high cost because that would allow for 
testing the feature without requiring the special instructions.

https://github.com/llvm/llvm-project/pull/100579
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to