On Wed, Aug 9, 2023 at 6:53 PM Di Zhao OS wrote:
>
> Hi,
>
> The previous version of this patch tries to solve two problems
> at the same time. For better clarity, I'll separate them and
> only deal with the "nested" FMA in this version. I plan to
> propose another patch in avoiding bad shaped FMA
Hi,
A few updates to the patch:
1. rank_ops_for_fma: return FMA_STATE_NESTED only for complete
FMA chain, since the regression is obvious only in this case.
2. Added new testcase.
Thanks,
Di Zhao
PR tree-optimization/110279
gcc/ChangeLog:
* tree-ssa-math-opts.cc (con