https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |tree-optimization
           Severity|normal                      |enhancement

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Yann Droneaud from comment #10)
> Those make gcc emits 2 or more calls to __tls_get_addr().

Basically RTL level PRE is not good enough for this.  That is we need to lower
partly TLS addressing sometime during gimple and run a gimple level PRE (which
should handle this).

NOTE LLVM Handles this by lowering the TLS addresses too.

Reply via email to