[llvm] [VPlan] Explicitly handle scalar pointer inductions. (PR #83068)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 01:22:41 PDT 2024
================
@@ -514,17 +547,32 @@ void VPInstruction::execute(VPTransformState &State) {
"Recipe not a FPMathOp but has fast-math flags?");
if (hasFastMathFlags())
State.Builder.setFastMathFlags(getFastMathFlags());
+ State.Builder.SetCurrentDebugLocation(getDebugLoc());
+ bool GeneratesPerFirstLaneOnly =
+ canGenerateScalarForFirstLane() &&
+ (vputils::onlyFirstLaneUsed(this) ||
+ getOpcode() == VPInstruction::ComputeReductionResult);
----------------
ayalz wrote:
(Unrelated to this patch, while we're here: why is ComputeReductionResult an exception?)
https://github.com/llvm/llvm-project/pull/83068
More information about the llvm-commits
mailing list