[all-commits] [llvm/llvm-project] 5d07e0: [TLS]: Clamp the alignment of TLS global variables...

Wolfgang Pieb via All-commits all-commits at lists.llvm.org
Wed Feb 8 10:40:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d07e0448e38d4be0cc7b1079d72b5e3644e941c
      https://github.com/llvm/llvm-project/commit/5d07e0448e38d4be0cc7b1079d72b5e3644e941c
  Author: Wolfgang Pieb <wolfgang_pieb at playstation.sony.com>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/CodeGen/tls-maxalign-modflag.c
    M llvm/include/llvm/IR/Module.h
    M llvm/lib/IR/Module.cpp
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/CodeGen/X86/tls-align.ll

  Log Message:
  -----------
  [TLS]: Clamp the alignment of TLS global variables if required by the target

Adding a module flag 'MaxTLSAlign' describing the maximum alignment a global TLS
variable can have. Optimizers are prevented from increasing the alignment of such
variables beyond this threshold.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D140123




More information about the All-commits mailing list