[JSC] Simplify ArithMod(ArithMod(x, const1), const2) if const2 >= const1
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.