Open Bug 1832022 Opened 1 year ago Updated 1 year ago

Consider to increase import-instr-limit

Categories

(Firefox Build System :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: smaug, Assigned: sergesanspaille, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file, 1 obsolete file)

glandium, you might have an opinion on this. Can you see any obvious possible issues with this?

Flags: needinfo?(mh+mozilla)

Serge might have an opinion too

Flags: needinfo?(sguelton)

The default in LLVM is 100. I would be interested in a performance comparison to the default value. This flag only affects the number of imported function and limits the choice of the compiler, theoretically it should be used to bound compilation time and not affect performance in a bad manner. The control of binary size is a side effect of imperfect inliner.

Flags: needinfo?(sguelton)
Whiteboard: [sp3]

At least on Windows import-instr-limit=100 looks rather promising. Nothing super major, but still significant improvement
https://treeherder.mozilla.org/perfherder/comparesubtest?originalProject=try&newProject=try&newRevision=b4409257aedcaaa7382b76c8abb34dfe8775d204&originalSignature=4586009&newSignature=4586009&framework=13&application=firefox&originalRevision=cec787d61490bd68de80145e2693baead8ac7d3f&page=1&showOnlyConfident=1

I didn't immediately see anything too worrisome in the binary size, on desktop at least.

Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(mh+mozilla)

I checked that import-instr-limit=100 doesn't regress bug 1824565 or bug 1827428 in try. 👍

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.

Assignee: nobody → sguelton
Status: NEW → ASSIGNED
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26904179b913 Reset to default -import-instr-limit threshold r=glandium
Attachment #9346771 - Attachment description: WIP: Bug 1832022 - Consider to increase import-instr-limit to 30, r=sergesanspaille → Bug 1832022 - Consider to increase import-instr-limit to 30, r=sergesanspaille
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f77e9c7c1ae0 Consider to increase import-instr-limit to 30, r=sergesanspaille
Flags: needinfo?(smaug)
Attachment #9346771 - Attachment is obsolete: true
Flags: needinfo?(smaug)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: