Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 41ee8b26825110c19e6aab1580e2d8ad89a2abb8
      
https://github.com/WebKit/WebKit/commit/41ee8b26825110c19e6aab1580e2d8ad89a2abb8
  Author: Sergey Rubanov <[email protected]>
  Date:   2026-07-20 (Mon, 20 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/b3/B3LowerToAir.cpp
    M Source/JavaScriptCore/b3/testb3.h
    M Source/JavaScriptCore/b3/testb3_2.cpp
    M Source/JavaScriptCore/b3/testb3_3.cpp

  Log Message:
  -----------
  [JSC] Match non-canonical SBFX form in B3LowerToAir
https://bugs.webkit.org/show_bug.cgi?id=271412

Reviewed by Yijia Huang.

B3LowerToAir already selected sbfx for SShr(Shl((Z|S)Shr(src, lsb), amount), 
amount).
Also match SShr(Shl(src, leftAmt), rightAmt) with rightAmt > leftAmt so that 
form
selects sbfx without expanding IR in ReduceStrength on every target.

* Source/JavaScriptCore/b3/B3LowerToAir.cpp:
(JSC::B3::LowerToAir::lower):
* Source/JavaScriptCore/b3/testb3.h:
* Source/JavaScriptCore/b3/testb3_2.cpp:
* Source/JavaScriptCore/b3/testb3_3.cpp:
(testExtractSignedBitfieldNonCanonical32):
(testExtractSignedBitfieldNonCanonical64):

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



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

Reply via email to