[llvm] [VPlan] Improve code in VPInstruction::generate (NFC) (PR #169470)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 03:37:39 PST 2025
================
@@ -900,7 +897,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
// each part of the reduction.
unsigned UF = getNumOperands() - 1;
VectorParts RdxParts(UF);
- for (unsigned Part = 0; Part < UF; ++Part)
+ for (unsigned Part : seq<unsigned>(UF))
----------------
fhahn wrote:
IMO both ways are fine, but I am also not sure changing from one way to the other is necessarily a clear-cut improvement and adds churn/costs time.
https://github.com/llvm/llvm-project/pull/169470
More information about the llvm-commits
mailing list