[PATCH] D100322: [ConstantMerge] Don't merge thread_local constants

Amanieu d'Antras via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 10:38:17 PDT 2021


Amanieu added a comment.

It's a bit more tricky than that:

- I'm not sure how we should handle the case where we are trying to merge 2 thread_local constants with different TLS models.
- In general we are better off *not* merging global constants with TLS constants since calculating a TLS address can be expensive.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100322



More information about the llvm-commits mailing list