[llvm] [TTI] Don't drop VP intrinsic args when delegating to non-vp equivalent (PR #147677)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 18:13:53 PDT 2025


================
@@ -1781,18 +1781,25 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
         assert(ICA.getArgTypes().size() >= 2 &&
                "Expected VPIntrinsic to have Mask and Vector Length args and "
                "types");
+
+        ArrayRef<const Value *> NewArgs = ArrayRef(ICA.getArgs());
+        if (!ICA.isTypeBasedOnly())
----------------
lukel97 wrote:

If it's typeBasedOnly then the args will be empty so I think dropping the front and back will trap

https://github.com/llvm/llvm-project/pull/147677


More information about the llvm-commits mailing list