Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5525e18807d3b5940d8bfb57861cd296239cf53f
      
https://github.com/WebKit/WebKit/commit/5525e18807d3b5940d8bfb57861cd296239cf53f
  Author: Yijia Huang <[email protected]>
  Date:   2025-05-01 (Thu, 01 May 2025)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp

  Log Message:
  -----------
  [JSC] DFGLoopUnrollingPhase: Refactor material node tracking and add per-op 
node type stats
https://bugs.webkit.org/show_bug.cgi?id=292401
rdar://150482513

Reviewed by Yusuke Suzuki.

This patch refactors how material (code-emitting) nodes are counted during loop 
unrolling analysis.
Previously, this logic was inlined in isLoopBodyUnrollable(). It is now 
encapsulated in
LoopData::analyzeLoopNode() and the materialNodeCount field, improving 
modularity and readability.

Additionally, if the verboseLoopUnrolling flag is enabled, we now log a 
breakdown of node types
used in each unrolling candidate loop. This helps with debugging and tuning 
unrolling heuristics.

No functional behavior has changed; this is a refactor plus diagnostic 
enhancement.

* Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp:
(JSC::DFG::LoopUnrollingPhase::locateTail):
(JSC::DFG::LoopUnrollingPhase::isLoopBodyUnrollable):
(JSC::DFG::LoopUnrollingPhase::LoopData::analyzeLoopNode):
(JSC::DFG::LoopUnrollingPhase::dumpLoopNodeTypeStats):
(JSC::DFG::LoopUnrollingPhase::LoopData::dump const):
(JSC::DFG::LoopUnrollingPhase::LoopData::isMaterialNode):
(JSC::DFG::LoopUnrollingPhase::isMaterialNode): Deleted.

Canonical link: https://commits.webkit.org/294416@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to