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

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 14:16:31 PDT 2024


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

Perhaps isVectorToScalar: trying to capture the inverse behavior of broadcast, rather than only the type of the result, which may depend on the types of the operands - the sum of uniform / single scalar per part values also produces a uniform / single scalar per part value.

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


More information about the llvm-commits mailing list