We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4efc26b commit 9fcb505Copy full SHA for 9fcb505
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2261,9 +2261,10 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
2261
IsConditional = true;
2262
addOperand(CondOp);
2263
}
2264
- // The inloop reduction may across multiple scalar instruction and the
2265
- // underlying instruction may not contains the corresponding flags. Set the
2266
- // flags explicit from the redurrence descriptor.
+
+ // In-loop reductions may comprise of multiple scalar instructions, and the
+ // underlying instruction may not contain the same flags as the
2267
+ // recurrence descriptor, so set the flags explicitly.
2268
if (isa<FPMathOperator>(I))
2269
setFastMathFlags(R.getFastMathFlags());
2270
0 commit comments