Summary: | [JSC] Simplify ArithMod(ArithMod(x, const1), const2) if const2 >= const1 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||||
Component: | New Bugs | Assignee: | Benjamin Poulain <benjamin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, keith_miller, mark.lam, msaboff, saam | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Benjamin Poulain
2016-03-01 21:07:14 PST
Created attachment 272630 [details]
Patch
Comment on attachment 272630 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272630&action=review LGTM > Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:179 > + // Out: Identity(ArithMod(x, const1) Style nit: parens aren't balanced > Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:184 > + && m_node->child1()->binaryUseKind() Should this also be == Int32Use? (In reply to comment #2) > Comment on attachment 272630 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=272630&action=review > > LGTM > > > Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:179 > > + // Out: Identity(ArithMod(x, const1) > > Style nit: parens aren't balanced > > > Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:184 > > + && m_node->child1()->binaryUseKind() > > Should this also be == Int32Use? Yep, indeed! Created attachment 272637 [details]
Patch for landing
Comment on attachment 272637 [details] Patch for landing Clearing flags on attachment: 272637 Committed r197445: <http://trac.webkit.org/changeset/197445> All reviewed patches have been landed. Closing bug. |