[llvm] [VPlan] Factor first-lane-scalar logic in VPI::execute (NFC) (PR #196207)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 03:17:35 PDT 2026
================
@@ -1568,20 +1563,18 @@ void VPInstruction::execute(VPTransformState &State) {
assert(hasRequiredFlagsForOpcode(getOpcode()) &&
"Opcode requires specific flags to be set");
State.Builder.setFastMathFlags(getFastMathFlagsOrNone());
- Value *GeneratedValue = generate(State);
+ bool GenerateScalar =
+ State.VF.isScalar() || (canGenerateScalarForFirstLane() &&
+ (vputils::onlyFirstLaneUsed(this) ||
----------------
lukel97 wrote:
Yeah I had that thought as well and ran it on llvm-test-suite but there were no changes on armv9 or rva23u64
https://github.com/llvm/llvm-project/pull/196207
More information about the llvm-commits
mailing list