On 10/28/26 1:19 AM, Richard Biener wrote:
On Wed, Oct 28, 2026 at 7:16 AM Sendao Yan <[email protected]> wrote:
The backward jump threader fails to thread the state-machine loop in
binascii_a2b_base64 because the switch has already been lowered to a
decision tree by the time the late FSM threading runs, and the
duplication limits are tight for the resulting branch sequence.

Lower the switch after the second pass_thread_jumps_full so the backward
threader still sees the GIMPLE_SWITCH, but before pass_dominator so the
lowered decision tree is cleaned up by the following jump threading.
pass_dominator and pass_strlen keep their places and the non-FSM
pass_thread_jumps moves after them, restoring the GCC 11 performance
(PR128102) without introducing a -Wmaybe-uninitialized false positive.

The reordering also removes a pre-existing false positive in
uninit-pred-7_a.c.
LGTM (I assume bootstrapped and tested on a primary arch).
Given the potential for fallout, I'm going to throw this into my tester, please don't push yet.

jeff

Reply via email to