Re: [PATCH v4] fold fold_truth_andor field merging into ifcombine

2024-12-10 Thread Richard Biener
On Mon, Dec 9, 2024 at 8:55 PM Alexandre Oliva wrote: > > This patch introduces various improvements to the logic that merges > field compares, while moving it into ifcombine. > > Before the patch, we could merge: > > (a.x1 EQNE b.x1) ANDOR (a.y1 EQNE b.y1) > > into something like: > > (((ty

[PATCH v4] fold fold_truth_andor field merging into ifcombine

2024-12-09 Thread Alexandre Oliva
This patch introduces various improvements to the logic that merges field compares, while moving it into ifcombine. Before the patch, we could merge: (a.x1 EQNE b.x1) ANDOR (a.y1 EQNE b.y1) into something like: (((type *)&a)[Na] & MASK) EQNE (((type *)&b)[Nb] & MASK) if both of A's field