[llvm] 3b58a74 - [VPlan] Move flags to separate variable (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 05:47:36 PDT 2026
Author: Florian Hahn
Date: 2026-03-27T12:44:11Z
New Revision: 3b58a740d37bb623670fa1fa356e14895803e0c9
URL: https://github.com/llvm/llvm-project/commit/3b58a740d37bb623670fa1fa356e14895803e0c9
DIFF: https://github.com/llvm/llvm-project/commit/3b58a740d37bb623670fa1fa356e14895803e0c9.diff
LOG: [VPlan] Move flags to separate variable (NFC).
Addresses post-commit feedback missed in
https://github.com/llvm/llvm-project/pull/188966.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index e2ff373b2bcc6..58fbacff2814c 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7799,11 +7799,11 @@ VPRecipeBuilder::tryToOptimizeInductionTruncate(VPInstruction *VPI,
// Wrap flags from the original induction do not apply to the truncated type,
// so do not propagate them.
+ VPIRFlags Flags = VPIRFlags::WrapFlagsTy(false, false);
VPValue *Step =
vputils::getOrCreateVPValueForSCEVExpr(Plan, IndDesc.getStep());
return new VPWidenIntOrFpInductionRecipe(
- Phi, Start, Step, &Plan.getVF(), IndDesc, I,
- VPIRFlags::WrapFlagsTy(false, false), VPI->getDebugLoc());
+ Phi, Start, Step, &Plan.getVF(), IndDesc, I, Flags, VPI->getDebugLoc());
}
VPSingleDefRecipe *VPRecipeBuilder::tryToWidenCall(VPInstruction *VPI,
More information about the llvm-commits
mailing list