[webkit-changes] [WebKit/WebKit] 6def6e: [JSC] Extend DFG Loop Unrolling to accept a bit mo...

Yusuke Suzuki noreply at github.com
Tue Dec 10 09:49:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6def6e74718f82f84fc17e4c46e79fb4bafc9e53
      https://github.com/WebKit/WebKit/commit/6def6e74718f82f84fc17e4c46e79fb4bafc9e53
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp
    M Source/JavaScriptCore/runtime/OptionsList.h

  Log Message:
  -----------
  [JSC] Extend DFG Loop Unrolling to accept a bit more patterns
https://bugs.webkit.org/show_bug.cgi?id=284342
rdar://141188173

Reviewed by Yijia Huang.

This patch tweaks our Loop Unrolling a bit to apply it to the other
places.

1. ValueRep and DoubleRep should be supported. They are simple.
2. A bit tweaking paramters of Loop Unrolling. Also making them as
   option value so that we can easily change it via environment
   variable.

* Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp:
(JSC::DFG::LoopUnrollingPhase::run):
(JSC::DFG::LoopUnrollingPhase::identifyInductionVariable):
(JSC::DFG::LoopUnrollingPhase::shouldUnrollLoop):
(JSC::DFG::LoopUnrollingPhase::isNodeCloneable):
(JSC::DFG::LoopUnrollingPhase::cloneNodeImpl):
* Source/JavaScriptCore/runtime/OptionsList.h:

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



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


More information about the webkit-changes mailing list