[webkit-changes] [WebKit/WebKit] bcf719: [JSC] VectorExtractLane+0 for f32x4 / f64x2 is nop

Yusuke Suzuki noreply at github.com
Sat Mar 4 12:34:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bcf7195164fcec6f7da447a343d3adf2dcce7ecd
      https://github.com/WebKit/WebKit/commit/bcf7195164fcec6f7da447a343d3adf2dcce7ecd
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-03-04 (Sat, 04 Mar 2023)

  Changed paths:
    M Source/JavaScriptCore/b3/B3LowerToAir.cpp
    M Source/JavaScriptCore/b3/testb3.h
    M Source/JavaScriptCore/b3/testb3_1.cpp
    M Source/JavaScriptCore/b3/testb3_7.cpp

  Log Message:
  -----------
  [JSC] VectorExtractLane+0 for f32x4 / f64x2 is nop
https://bugs.webkit.org/show_bug.cgi?id=253381
rdar://106226855

Reviewed by Mark Lam.

VectorExtractLane f32x4 / f64x2 for 0th lane is just Trunc operation.
Since both are FPReg, this is nop. We handle this in the same way to Trunc.

* Source/JavaScriptCore/b3/B3LowerToAir.cpp:
* Source/JavaScriptCore/b3/testb3.h:
* Source/JavaScriptCore/b3/testb3_1.cpp:
(run):
* Source/JavaScriptCore/b3/testb3_7.cpp:
(testVectorExtractLane0Float):
(testVectorExtractLane0Double):

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




More information about the webkit-changes mailing list