[PATCH] D72878: [X86][BranchAlign] Suppress branch alignment for {,_}__tls_get_addr

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 14:34:14 PST 2020


MaskRay created this revision.
MaskRay added reviewers: craig.topper, reames, skan, annita.zhang, jyknight, LuoYuanke.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

The x86-64 General Dynamic TLS code sequence uses prefixes to allow
linker relaxation.  Adding segment override prefix or NOPs can break
linker relaxation (ld -pie/-no-pie).

i386 General Dynamic and x86-64 Local Dynamic do not use prefixes, but
for simplicity, just disable auto padding consistently.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72878

Files:
  llvm/lib/Target/X86/X86MCInstLower.cpp
  llvm/test/CodeGen/X86/align-branch-boundary-suppressions-tls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72878.238622.patch
Type: text/x-patch
Size: 3762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/50d10c2c/attachment.bin>


More information about the llvm-commits mailing list