This patch updates VPReductionRecipe::execute so that the fast-math
flags associated with the underlying instruction of the VPReductionRecipe are
propagated through to the reductions which are created.
Depends on D112547
Differential D112548
[LoopVectorize] Propagate fast-math flags for inloop reductions RosieSumpter on Oct 26 2021, 8:15 AM. Authored by
Details This patch updates VPReductionRecipe::execute so that the fast-math Depends on D112547
Diff Detail Event TimelineComment Actions Thanks for this patch @RosieSumpter - seems like a nice fix! I wonder if it's also worth changing createOrderedReduction to be similar to createTargetReduction and set the flags in there too? Also, you've fixed up the VF=1 cases too.
Comment Actions
Comment Actions Thank you @RosieSumpter, this patch looks good to me and I think all of the comments have been addressed.
Comment Actions Just adding an extra datapoint to do with as you wish.
|
I completely forgot we can actually just use a guard here, i.e.
then you don't need the extra line at the bottom anymore to reset the flags.