[llvm] [VPlan] Add ComputeAnyOfResult VPInstruction (NFC) (PR #141932)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 13:35:13 PDT 2025


================
@@ -87,6 +87,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
                inferScalarType(R->getOperand(1)) &&
            "different types inferred for different operands");
     return IntegerType::get(Ctx, 1);
+  case VPInstruction::ComputeAnyOfResult:
+    return inferScalarType(R->getOperand(1));
----------------
fhahn wrote:

Changed for now, but it would probably be good to move away from directly checking the underlying phi type  separately.

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


More information about the llvm-commits mailing list