We thought this was a good idea for a long time but then we got evidence that it's not a good idea. In the meantime, I implemented it. I will use this bug to stash the code and report any results.
Created attachment 290241 [details] the patch This turns out to be very easy to write.
Created attachment 291216 [details] the patch
Created attachment 291218 [details] the patch
Comment on attachment 291218 [details] the patch r=me
Landed in https://trac.webkit.org/changeset/207164
Comment on attachment 291218 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=291218&action=review > Source/JavaScriptCore/b3/air/AirFixObviousSpills.cpp:195 > + // First handle some special instructions. Nit: I don't think this comment really adds anything. > Source/JavaScriptCore/b3/air/AirFixObviousSpills.cpp:210 > + // should add fancier materializations here for ARM if the BigImm is yuge. s/yuge/huge Maybe open a bug for this?