[webkit-changes] [WebKit/WebKit] 4528a8: Fix SIMD loop stop condition for length=0

Yusuke Suzuki noreply at github.com
Sat Sep 10 03:13:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4528a8ead9b4d7cc80e92f7f969e3ae674c2bd57
      https://github.com/WebKit/WebKit/commit/4528a8ead9b4d7cc80e92f7f969e3ae674c2bd57
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2022-09-10 (Sat, 10 Sep 2022)

  Changed paths:
    M Source/WTF/wtf/text/StringCommon.cpp

  Log Message:
  -----------
  Fix SIMD loop stop condition for length=0
https://bugs.webkit.org/show_bug.cgi?id=245017
<rdar://99768369>

Reviewed by Mark Lam.

We should stop the loop when the remaining length becomes zero.
Tested via guarded malloc bots.

* Source/WTF/wtf/text/StringCommon.cpp:
(WTF::find16AlignedImpl):
(WTF::find32AlignedImpl):
(WTF::find64AlignedImpl):
(WTF::findFloatAlignedImpl):
(WTF::findDoubleAlignedImpl):
(WTF::find8NonASCIIAlignedImpl):
(WTF::find16NonASCIIAlignedImpl):

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




More information about the webkit-changes mailing list