Re: [PATCH] gimple: Optimise inlined gimple_seq_last

2021-12-06 Thread Richard Biener via Gcc-patches
On Sun, Dec 5, 2021 at 11:02 PM Richard Sandiford via Gcc-patches wrote: > > In self-compilations, GCC doesn't realise that gimple_seq_last > always returns nonnull when the argument is nonnull. Although > it's a small thing in itself, the function is used (indirectly) > many times and the extra

[PATCH] gimple: Optimise inlined gimple_seq_last

2021-12-05 Thread Richard Sandiford via Gcc-patches
In self-compilations, GCC doesn't realise that gimple_seq_last always returns nonnull when the argument is nonnull. Although it's a small thing in itself, the function is used (indirectly) many times and the extra null checks bloat what are otherwise simple loops. This patch adds an optimisation