Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37c77f48561ad37be5e08424748d81a23f503040
      
https://github.com/WebKit/WebKit/commit/37c77f48561ad37be5e08424748d81a23f503040
  Author: Rose <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to