[PATCH] D122558: [2/3] TLS loads optimization (hoist)

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 18:03:02 PDT 2022


xiangzhangllvm added a comment.

> If the option is going to be on and never turned off

It is not supposed to be "never turned off".
Generally speaking, hoisting the common TLS address call operation will big probably have performance gains.
But this will also lengthen register interval, possible cause more spills.
especially in case

                     BB1
                   /      \
                 BB2    BB3 (with 1 tls call or more tls calls but BB is cold)
  (with 1 tls call)  

And this patch only add about 15 lines to support the driver options. (Others are refining the llvm option and test)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122558/new/

https://reviews.llvm.org/D122558



More information about the llvm-commits mailing list