[PATCH] rs6000: Make CSE'ing __tls_get_addr calls possible

Segher Boessenkool segher@kernel.crashing.org
Sun Mar 24 16:34:00 GMT 2019


Hi Steven,

On Sun, Mar 24, 2019 at 11:02:20AM +0100, Steven Bosscher wrote:
> On Sun, Mar 24, 2019 at 12:46 AM Segher Boessenkool wrote:
> >
> > CSE does not consider calls, not even const calls.  This patch puts a
> > REG_EQUAL note on the pseudo we assign the __tls_get_addr result to,
> > so that those pseudos can be CSE'd and the extra calls deleted as dead
> > code.
> 
> There were REG_EQUAL notes on these tls calls in the past, but I
> recall removing them for one reason or another.

I cannot find this in history.  History is pretty big of course, so perhaps
I'm not looking at the right corner :-)

> So watch out for
> fall-out from this patch! ;-)

Thanks for the warning!

The patch doesn't change anything, in the sense that these calls were const
calls before already, but yeah :-)


Segher



More information about the Gcc-patches mailing list