Bug 239258 - [JSC] Add partial inlining in the DFG/FTL
Summary: [JSC] Add partial inlining in the DFG/FTL
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-12 15:39 PDT by Robin Morisset
Modified: 2022-04-19 15:40 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2022-04-12 15:39:07 PDT
Some functions (e.g. the hottest function in the ML subtest of JetStream2 if I remember correctly) have the following structure:
- A switch or branch on the number of arguments, or the type of an argument, or the value of an argument
- All of the code is in the various branches.
- The function as a whole is too big to inline.
It would be great to be able to outline each of the branches, which would make the function as a whole trivially inlinable and would allow eliminating the branch in most cases.
According to some profiling I did a couple of years ago, it should have a significant impact on some subtests of JS2.
Comment 1 Radar WebKit Bug Importer 2022-04-19 15:40:12 PDT
<rdar://problem/91990465>