Bug 150759

Summary: B3::LowerToAir should recognize Neg (i.e. Sub($0, value))
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, benjamin, ggaren, mark.lam, mhahnenb, msaboff, nrotem, oliver, saam, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 150279    
Attachments:
Description Flags
the patch benjamin: review+

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.