mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1832022 - Reset to default -import-instr-limit threshold r=glandium
The compiler may be imperfect but it evolves, and hard-coded threshold don't. Plus according to prefherder, the impact on size is within reasonable bounds. Differential Revision: https://phabricator.services.mozilla.com/D178152
This commit is contained in:
parent
0b0a150a4c
commit
41ac11b6d4
@ -305,16 +305,6 @@ def lto(
|
||||
ldflags.append("-flto=%s" % num_cores)
|
||||
ldflags.append("-flifetime-dse=1")
|
||||
|
||||
# Tell LTO not to inline functions above a certain size, to mitigate
|
||||
# binary size growth while still getting good performance.
|
||||
# (For hot functions, PGO will put a multiplier on this limit.)
|
||||
if target.os == "WINNT":
|
||||
ldflags.append("-mllvm:-import-instr-limit=10")
|
||||
elif target.os == "OSX":
|
||||
ldflags.append("-Wl,-mllvm,-import-instr-limit=10")
|
||||
elif c_compiler.type == "clang":
|
||||
ldflags.append("-Wl,-plugin-opt=-import-instr-limit=10")
|
||||
|
||||
# If we're using the new pass manager, we can also enable the new PM
|
||||
# during LTO. Further we can use the resulting size savings to increase
|
||||
# the import limit in hot functions.
|
||||
|
Loading…
Reference in New Issue
Block a user