Skip to content
Snippets Groups Projects
Commit a4fd6daa authored by Iulian Moraru's avatar Iulian Moraru
Browse files

Backed out changeset 26904179b913 (bug 1832022) for causing multiple crashes...

Backed out changeset 26904179b913 (bug 1832022) for causing multiple crashes related to nsCOMPtr. CLOSED TREE
parent 65bf71c0
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,16 @@ 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment