Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 86d3f77f318bb5d9edb248a70ee386d99c239efe
https://github.com/WebKit/WebKit/commit/86d3f77f318bb5d9edb248a70ee386d99c239efe
Author: Dan Hecht <[email protected]>
Date: 2026-04-20 (Mon, 20 Apr 2026)
Changed paths:
M Source/JavaScriptCore/b3/B3Procedure.h
M Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp
M Source/JavaScriptCore/b3/air/AirPhaseStats.h
M Source/JavaScriptCore/b3/air/AirRegisterAllocatorStats.h
M Source/JavaScriptCore/ftl/FTLState.cpp
M Source/JavaScriptCore/runtime/OptionsList.h
M Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp
Log Message:
-----------
[JSC] Add per-function dump filtering to greedy register allocator
https://bugs.webkit.org/show_bug.cgi?id=312400
rdar://174856004
Reviewed by Yijia Huang.
The --airGreedyRegAllocVerbose option is useful for detailed debugging
but for large wasm modules, it produces too much output.
So for understanding transformations the register allocator is performing
on a particular function (especially for performance analysis), add
the --airGreedyRegAllocDumpFunction=filter option to dump greedy register
allocator state and IR for functions matching a substring filter.
Also, attach the function simple name + hash to the register allocator stats
output.
To accomplish this, store the simple name + hash into the B3::Procedure.
Also, consolidate IR dump points inside GreedyAllocator::run().
* Source/JavaScriptCore/b3/B3Procedure.h:
(JSC::B3::Procedure::setName):
(JSC::B3::Procedure::name const):
* Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp:
(JSC::B3::Air::Greedy::GreedyAllocator::run):
(JSC::B3::Air::Greedy::GreedyAllocator::shouldDumpFunction const):
(JSC::B3::Air::Greedy::GreedyAllocator::assignRegisters):
(JSC::B3::Air::allocateRegistersByGreedy):
* Source/JavaScriptCore/b3/air/AirPhaseStats.h:
* Source/JavaScriptCore/b3/air/AirRegisterAllocatorStats.h:
(JSC::B3::Air::AirAllocateRegistersStats::AirAllocateRegistersStats):
* Source/JavaScriptCore/ftl/FTLState.cpp:
(JSC::FTL::State::State):
* Source/JavaScriptCore/runtime/OptionsList.h:
* Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp:
(JSC::Wasm::parseAndCompileOMG):
Canonical link: https://commits.webkit.org/311592@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications