Re: [PATCH v2] PR tree-optimization/98335: Improvements to DSE's compute_trims.

2022-03-11 Thread Richard Biener via Gcc-patches
On Wed, Mar 9, 2022 at 6:43 PM Roger Sayle wrote: > > > Hi Richard, > Many thanks. Yes, your proposed ao_ref_alignment is exactly what I was > looking for. > Here's the second revision of my patch for PR tree-optimization/98335 that > both uses/ > introduces ao_ref_alignment and more intelligen

RE: [PATCH v2] PR tree-optimization/98335: Improvements to DSE's compute_trims.

2022-03-09 Thread Roger Sayle
Hi Richard, > 2022-03-09 Roger Sayle > Richard Biener > > gcc/ChangeLog > PR tree-optimization/98335 > * builtins.cc (get_object_alignment_2): Export. > * builtins.h (get_object_alignment_2): Likewise. > * tree-ssa-alias.cc (ao_ref_alignment): New. >

[PATCH v2] PR tree-optimization/98335: Improvements to DSE's compute_trims.

2022-03-09 Thread Roger Sayle
Hi Richard, Many thanks. Yes, your proposed ao_ref_alignment is exactly what I was looking for. Here's the second revision of my patch for PR tree-optimization/98335 that both uses/ introduces ao_ref_alignment and more intelligently aligns/trims both head and tail, for example handling the cas