[llvm] [VPlan] Add VPInstruction::Intrinsic opcode, use for scalar intrinsics. (PR #207541)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 07:33:43 PDT 2026


================
@@ -1864,9 +1871,14 @@ void VPInstructionWithType::execute(VPTransformState &State) {
     State.set(this, StepVector);
     break;
   }
-  case VPInstruction::VScale: {
-    Value *VScale = State.Builder.CreateVScale(ResultTy);
-    State.set(this, VScale, true);
+  case VPInstruction::Intrinsic: {
+    SmallVector<Value *, 2> Args;
+    for (VPValue *Op : drop_end(operands()))
+      Args.push_back(State.get(Op, VPLane(0)));
----------------
fhahn wrote:

Updated, thanks

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


More information about the llvm-commits mailing list