Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d95cccd380319456aeb26450070e32b897e14c05
      
https://github.com/WebKit/WebKit/commit/d95cccd380319456aeb26450070e32b897e14c05
  Author: Dan Hecht <[email protected]>
  Date:   2025-11-07 (Fri, 07 Nov 2025)

  Changed paths:
    M Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp
    M Source/JavaScriptCore/b3/air/AirRegisterAllocatorStats.h

  Log Message:
  -----------
  [JSC] GreedyRegAlloc: adjust the spill cost heuristic
https://bugs.webkit.org/show_bug.cgi?id=302159
rdar://164259068

Reviewed by Keith Miller and Yusuke Suzuki.

The spillCostSizeBias parameter had the wrong type, causing it to
always be 1 when the intention was for it to be 1000. Regardless,
both 1 and 1000 perform similarly and are too small.

It's better to decrease the influence of the live range size (which
is the sum of the distances of the intervals that make up the range)
since this is just a crude approximation for the degree of interference.

Also, add a new register allocator metric that helped guide the
selection of this value.

Tests: covered by existing JSC tests
Canonical link: https://commits.webkit.org/302735@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to