| Summary: | B3 should reduce (integer) Sub(Neg(x), y) to Neg(Add(x, y)) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Robin Morisset <rmorisset> | ||||
| Component: | JavaScriptCore | Assignee: | Justin Michaud <justin_michaud> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, ews-watchlist, justin_michaud, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=199203 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 196361 | ||||||
| Attachments: |
|
||||||
|
Description
Robin Morisset
2019-03-28 12:46:08 PDT
Other similar reduction rules that would be useful (look at https://bugs.webkit.org/show_bug.cgi?id=199203 for an example where rules 1 and 3 would allow a lot of simplifications): Sub(Sub(a, b), c) => Sub(a, Add(b, c)) Sub(a, Sub(b, c)) => Sub(Add(a, c), b) Sub(Add(a, b), c) => Add(a, Sub(b, c)) Created attachment 373995 [details]
Patch
Comment on attachment 373995 [details]
Patch
r=me.
Comment on attachment 373995 [details] Patch Clearing flags on attachment: 373995 Committed r247390: <https://trac.webkit.org/changeset/247390> All reviewed patches have been landed. Closing bug. |