On Sat, Nov 29, 2025 at 10:24:25AM +0200, Dimitar Dimitrov wrote:
> Starting with r16-4438-ga93f80feeef744, the edge sorting order was
> switched to lowest execution frequency first.  But the "bbro"
> optimization pass chooses the first edge as a fallthrough.  Thus the
> most unlikely branches were optimized to fallthroughs.
> 
> Fix by restoring the sorting order prior to r16-4438-ga93f80feeef744.
> Now the branches most likely to be executed are picked as fallthroughs.
> 
> There are no regressions for C and C++ on x86_64-pc-linux-gnu.
> 
> The new tests fail for the respective targets without this patch, and
> pass with it.
> 
>       PR rtl-optimization/122675

This patch also fixes PR/122403

Thanks,
Yury

Reply via email to