Bug 242816 - [JSC] Improve same-register moves in AirAllocateRegistersAndStackAndGenerateCode
Summary: [JSC] Improve same-register moves in AirAllocateRegistersAndStackAndGenerateCode
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-07-15 13:00 PDT by Joseph Griego
Modified: 2022-07-22 13:01 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 Joseph Griego 2022-07-15 13:00:25 PDT
When we are emitting a `Move` from a Tmp to a named-register Tmp that matches
its current allocation, we currently generate code that spills the source tmp to
the stack, allocates a new (distinct) register for it, restores it there, and
then moves it; this seems wasteful and, although this kind of situation in Air
is not common on x86_64, we do generate it on 32-bit ARM targets
Comment 1 Joseph Griego 2022-07-15 13:04:08 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2462
Comment 2 Radar WebKit Bug Importer 2022-07-22 13:01:17 PDT
<rdar://problem/97452075>