[llvm] [VPlan] Model FOR extract of exit value in VPlan. (PR #93395)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 00:24:19 PDT 2024


================
@@ -598,6 +621,7 @@ void VPInstruction::execute(VPTransformState &State) {
   bool GeneratesPerFirstLaneOnly =
       canGenerateScalarForFirstLane() &&
       (vputils::onlyFirstLaneUsed(this) ||
+       getOpcode() == VPInstruction::ExtractRecurrenceResult ||
----------------
ayalz wrote:

Perhaps worth introducing an `isReduction` trait to classify vector-to-scalar recipes including `ComputeReductionResult` and Extract*'s.

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


More information about the llvm-commits mailing list