https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128962
--- Comment #1 from 颜森道 <yansendao at 126 dot com> --- Thanks for the report and the bisect. That commit is the middle patch of the PR128102 series; the other two are -Wuninitialized fixes and do not change code generation. It moves pass_lower_switch after the late jump threading so the threader can see a GSwitch when it tries to thread a loop latch. I do not have SPEC 2017 available right now, but I will try get access to it shortly. First I will check whether the exchange2_r slowdown reproduces stably on our machines; if it does, I would like to try to fix it — either by restricting when the lowering is deferred, or by re-running threading after the lowering. I will follow up with data once we have it.
