[Bug middle-end/126896] backward threader cannot duplicate a PHI-of-compares join block
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Aug 29 11:02:58 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126896
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:
https://gcc.gnu.org/g:dc8aa54843e5813d046a8b2fc3758b9e4064425d
commit r17-3743-gdc8aa54843e5813d046a8b2fc3758b9e4064425d
Author: Aldy Hernandez <aldy@quesejoda.com>
Date: Sat Aug 29 08:58:27 2026 +0000
phiopt: remove early_p gate from cond replication [PR126896]
As a follow-up suggested by Jeff, run replicate_conds_over_phis in
early phiopt too instead of gating it on !early_p.
Tested on ppc64le Linux.
PR tree-optimization/126896
gcc/ChangeLog:
* tree-ssa-phiopt.cc (pass_phiopt::execute): Run
replicate_conds_over_phis in early phiopt too.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/dom-jump-threading-1.c: Disable phiopt1.
* gcc.dg/tree-ssa/dom-jump-threading-2.c: Likewise.
* gcc.dg/tree-ssa/phi_on_compare-1.c: Scan the phiopt1 dump.
More information about the Gcc-bugs
mailing list