RESOLVED FIXED Bug 150759
B3::LowerToAir should recognize Neg (i.e. Sub($0, value))
https://bugs.webkit.org/show_bug.cgi?id=150759
Summary B3::LowerToAir should recognize Neg (i.e. Sub($0, value))
Filip Pizlo
Reported 2015-10-31 11:14:44 PDT
I don't think that the current trySub() lowering handles this. We could handle it either using a second pattern match rule, or by recognizing the zero immediate inside trySub().
Attachments
the patch (8.44 KB, patch)
2015-11-03 16:18 PST, Filip Pizlo
benjamin: review+
Filip Pizlo
Comment 1 2015-11-03 16:18:50 PST
Created attachment 264750 [details] the patch
Benjamin Poulain
Comment 2 2015-11-03 16:32:07 PST
Comment on attachment 264750 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=264750&action=review > Source/JavaScriptCore/b3/B3LoweringMatcher.patterns:40 > +StoreSubLoad = Store(Sub(left, right), address) Aw, crap.
Filip Pizlo
Comment 3 2015-11-03 16:42:19 PST
Note You need to log in before you can comment on or make changes to this bug.