[all-commits] [llvm/llvm-project] b7ac16: [clang] Default x86-64's medium code model -mlarge...
Arthur Eubanks via All-commits
all-commits at lists.llvm.org
Wed Oct 4 13:06:36 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7ac16c70faf7274119f393797ce89c054346f48
https://github.com/llvm/llvm-project/commit/b7ac16c70faf7274119f393797ce89c054346f48
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2023-10-04 (Wed, 04 Oct 2023)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/test/CodeGen/large-data-threshold.c
Log Message:
-----------
[clang] Default x86-64's medium code model -mlarge-data-threshold to 65535 (#67506)
This matches gcc.
This means that by default, under x86-64's medium code model we treat
globals < 2^16 bytes as "small data" and globals >= 2^16 bytes as "large
data".
The previous clang behavior of treating all data as "large data" can be
set with `-mlarge-data-threshold=0`.
See
https://discourse.llvm.org/t/rfc-matching-gccs-mlarge-data-threshold-for-x86-64s-medium-code-model/73727.
More information about the All-commits
mailing list