Unverified Commit 09d51a84 authored by Felix (Ting Wang)'s avatar Felix (Ting Wang) Committed by GitHub
Browse files

[PowerPC][AIX] Enable aix-small-local-dynamic-tls target attribute (#86641)



Following the aix-small-local-exec-tls target attribute, this patch adds
a target attribute for an AIX-specific option in llc that informs the
compiler that it can use a faster access sequence for the local-dynamic
TLS model (formally named aix-small-local-dynamic-tls) when TLS
variables are less than ~32KB in size.

The patch either produces an addi/la with a displacement off of module
handle (return value from .__tls_get_mod) when the address is
calculated, or it produces an addi/la followed by a load/store when the
address is calculated and used for further accesses.

---------

Co-authored-by: default avatarAmy Kwan <amy.kwan1@ibm.com>
parent bf1d7b8d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment