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

Roger Sayle roger@nextmovesoftware.com
Thu Mar 10 07:06:52 GMT 2022

Hi Richard,

> 2022-03-09  Roger Sayle  <roger@nextmovesoftware.com>
>             Richard Biener  <rguenther@suse.de>
> 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.
> 	* tree-ssa-alias.h (ao_ref_alignment): Declare.
> 	* tree-ssa-dse.cc (compute_trims): Improve logic deciding whether
> 	to align head/tail, writing more bytes but using fewer store insns.

> 	(maybe_trim_memstar_call): Silence compiler warnings by using
> 	memset to initialize lendata.

Please ignore this final change to maybe_trim_memstar_call, which I've
now removed from the patch.  Jason Merrill has now explained that these
warnings are issues with the (RedHat) system compiler on my host system
rather than code cleanliness issues with GCC source tree.  I just need to
ignore these compiler warnings in stage1 of a bootstrap/build, even in the
source files I'm changing.  Sorry for the noise.  Hopefully the rest looks good.


More information about the Gcc-patches mailing list