Bug 169254 - Air should have a way of expressing a register being clobbered by an instruction before some other operand in that same instruction is set
Summary: Air should have a way of expressing a register being clobbered by an instruct...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 20:09 PST by Filip Pizlo
Modified: 2017-03-06 20:09 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2017-03-06 20:09:14 PST
AtomicStrongCAS clobbers both eax and whatever you choose to hold the boolean result.  The boolean result is set after eax is set.  So the boolean result could use eax if eax is otherwise unused.  But, we currently fail at this.

This is one of those things that is very likely to be super complex and very unlikely to be super profitable, but it's worth thinking about in case some easy solution does present itself.