| Summary: | [Air] highOrderAdjacents in AbstractColoringAllocator::conservativeHeuristic should be some kind of array | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Robin Morisset <rmorisset> | ||||||||||||
| Component: | JavaScriptCore | Assignee: | Robin Morisset <rmorisset> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Bug Depends on: | |||||||||||||||
| Bug Blocks: | 154319 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Robin Morisset
2019-04-25 19:47:29 PDT
Created attachment 368297 [details]
Patch
Approximately a 6% speedup for the register allocator.
Attachment 368297 [details] did not pass style-queue:
ERROR: Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp:234: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
Total errors found: 1 in 2 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 368334 [details]
Patch
Fix style nits.
Created attachment 368998 [details]
Patch
Just rebased.
Comment on attachment 368998 [details] Patch Attachment 368998 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/12093904 New failing tests: http/tests/css/filters-on-iframes.html svg/dynamic-updates/SVGRadialGradientElement-svgdom-href-prop.html Created attachment 369031 [details]
Archive of layout-test-results from ews210 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews210 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Comment on attachment 368998 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368998&action=review r=me > Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp:195 > + Vector<IndexType, 100> highOrderAdjacents; Why not just make this MacroAssembler::numGPRs + MacroAssembler::numFPRs? Alternatively you could make registerCount() constexpr. Comment on attachment 368998 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368998&action=review >> Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp:195 >> + Vector<IndexType, 100> highOrderAdjacents; > > Why not just make this MacroAssembler::numGPRs + MacroAssembler::numFPRs? Alternatively you could make registerCount() constexpr. Making registerCount() constexpr is very tricky since it is defined as the length of a vector that is passed through quite a bit of code. I am currently testing MacroAssembler::numGPRs + MacroAssembler::numFPRs. Created attachment 378401 [details]
Patch
Submitting to EWS, I will cq+ it if it passes the tests.
Comment on attachment 378401 [details] Patch Clearing flags on attachment: 378401 Committed r249677: <https://trac.webkit.org/changeset/249677> All reviewed patches have been landed. Closing bug. |