Re: [PATCH]middle-end: Fix FMA detection when inspecting gimple which have no LHS.

2021-11-18 Thread Richard Biener via Gcc-patches
On Tue, 16 Nov 2021, Tamar Christina wrote: > Hi All, > > convert_mult_to_fma assumes that all gimple_assigns have a LHS set. This > assumption is however not true when an IFN is kept around just for the > side-effects. In those situations you have just the IFN and lhs will be null. > > Since

[PATCH]middle-end: Fix FMA detection when inspecting gimple which have no LHS.

2021-11-16 Thread Tamar Christina via Gcc-patches
Hi All, convert_mult_to_fma assumes that all gimple_assigns have a LHS set. This assumption is however not true when an IFN is kept around just for the side-effects. In those situations you have just the IFN and lhs will be null. Since there's no LHS, there also can't be any ADD and such it can