[webkit-changes] [WebKit/WebKit] 37c77f: [WTF] Remove countTrailingZeros

AtariDreams noreply at github.com
Wed Nov 1 13:44:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37c77f48561ad37be5e08424748d81a23f503040
      https://github.com/WebKit/WebKit/commit/37c77f48561ad37be5e08424748d81a23f503040
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M Source/JavaScriptCore/b3/B3ReduceStrength.cpp
    M Source/WTF/wtf/MathExtras.h

  Log Message:
  -----------
  [WTF] Remove countTrailingZeros
https://bugs.webkit.org/show_bug.cgi?id=264041

Reviewed by Yusuke Suzuki.

In addition to being redundant because of ctz existing, the lookup table
in itself is slower due to the operations happening to the variable v
before retrieving the value. Source: https://godbolt.org/z/Pnd9nPPbo

* Source/JavaScriptCore/b3/B3ReduceStrength.cpp: Switch to WTF:ctz.
* Source/WTF/wtf/MathExtras.h:
  (WTF::countTrailingZeros): Deleted.

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




More information about the webkit-changes mailing list