================
@@ -2483,13 +2484,21 @@ struct MemorySanitizerVisitor : public 
InstVisitor<MemorySanitizerVisitor> {
   using OriginCombiner = Combiner<false>;
 
   /// Propagate origin for arbitrary operation.
-  void setOriginForNaryOp(Instruction &I) {
+  ///
+  /// Optionally skips n trailing operands.
+  void setOriginForNaryOp(Instruction &I, unsigned int skipLastOperands = 0) {
----------------
thurstond wrote:

> I prefer instead of extending this function we just to do
> 
> ```
>     OriginCombiner OC(this, IRB);
>     for (args)
>       OC.Add(I.getOperand(i));
> ```
> 
> inside of handleNEONVectorStoreIntrinsic

Done in 
https://github.com/llvm/llvm-project/pull/99360/commits/1970568ab31879094666b20d6f09b39682c20864

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

Reply via email to