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

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 00:42:52 PDT 2025


================
@@ -7485,6 +7485,13 @@ static void addRuntimeUnrollDisableMetaData(Loop *L) {
   }
 }
 
+static Value *getStartValueFromReductionResult(VPInstruction *RdxResult) {
+  using namespace VPlanPatternMatch;
+  VPValue *StartVPV = RdxResult->getOperand(1);
----------------
Mel-Chen wrote:

Maybe we need a assertion that check if RdxResult is a VPInstruction::ComputeAnyOfResult/ComputeFindLastIVResult?

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


More information about the llvm-commits mailing list