Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05e7708cbdfa61ccab541ec3308a2e38d6ef2bfc
      
https://github.com/WebKit/WebKit/commit/05e7708cbdfa61ccab541ec3308a2e38d6ef2bfc
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M Source/JavaScriptCore/b3/air/AirEliminateDeadCode.cpp

  Log Message:
  -----------
  [JSC] Optimize AirEliminateDeadCode
https://bugs.webkit.org/show_bug.cgi?id=317991
rdar://180771298

Reviewed by Dan Hecht.

Inst::hasNonArgEffects() is relatively costly operation but this is pure
operation. When we collected possiblyDead list, they are guaranteed to
return false from Inst::hasNonArgEffects(). So skip calling this.
Also after the fix-point iteration, possiblyDead is the set of dead Insts.
So if it is empty, we do not need to iterate a graph. And we can nullify
Inst so that elimination becomes quicker.

* Source/JavaScriptCore/b3/air/AirEliminateDeadCode.cpp:
(JSC::B3::Air::eliminateDeadCode):

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



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

Reply via email to