This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] rs6000: Make CSE'ing __tls_get_addr calls possible
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Sun, 24 Mar 2019 11:02:20 +0100
- Subject: Re: [PATCH] rs6000: Make CSE'ing __tls_get_addr calls possible
- References: <c8e9a1da0f0dfeab3038a1fe827226ce2a78bee8.1553382163.git.segher@kernel.crashing.org>
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.
Hi Segher,
There were REG_EQUAL notes on these tls calls in the past, but I
recall removing them for one reason or another. So watch out for
fall-out from this patch! ;-)
Ciao!
Steven