Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eafee057d4d16608181f6a7c8223b850e217e5e5
https://github.com/WebKit/WebKit/commit/eafee057d4d16608181f6a7c8223b850e217e5e5
Author: Yijia Huang <[email protected]>
Date: 2025-11-12 (Wed, 12 Nov 2025)
Changed paths:
A JSTests/stress/loop-unrolling-with-a-switch-tail-terminal.js
M Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp
Log Message:
-----------
[JSC] Skip loop unrolling when tail has non-branch terminal
https://bugs.webkit.org/show_bug.cgi?id=297153
rdar://157755838
Reviewed by Yusuke Suzuki.
The loop unrolling phase assumed tail blocks always have Branch terminals,
but could encounter Switch terminals. Add an early check in locateTail() to
skip loops with non-Branch terminals, as the current implementation only
supports Branch-based loop structures.
Originally-landed-as: 297297.245@safari-7622-branch (dc6269bc685f).
rdar://164280938
Canonical link: https://commits.webkit.org/302968@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications