[PATCH] Merge adjacent stores of constants (PR middle-end/22141)

Andrew Pinski pinskia@gmail.com
Thu Nov 27 16:41:00 GMT 2008


On Thu, Nov 27, 2008 at 7:38 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> This patch merges adjacent stores of constants into larger size
> stores (up to wordsize, larger isn't IMNSHO beneficial).
> The optimization is done as part of DSE1, eventhough it is just
> related to DSE (in order to eliminate some stores, it first
> appends a new larger store after them and then eliminates
> 2 or more as dead stores), because DSE has all the infrastructure
> and information needed for this optimization.

I think this fixes PR 23684 also ...
Also I think there needs to be a check on STRICT_ALIGN, not just
SLOW_UNALIGNED_ACCESS, I think.  Just in case SLOW_UNALIGNED_ACCESS is
not defined to take into account STRICT_ALIGN.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list