[gcc r17-2769] tree-optimization: Remove true condition in tree-ssa-ifcombine.cc. [PR126397]
Kael Andrew Franco via Gcc-cvs <[email protected]> Tue, 28 Jul 2026 23:59:33 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:a88f4a1392a8bd2e6158189463328aadfe13a349 commit r17-2769-ga88f4a1392a8bd2e6158189463328aadfe13a349 Author: Kael Andrew Alonzo Franco <[email protected]> Date: Tue Jul 28 19:58:37 2026 -0400 tree-optimization: Remove true condition in tree-ssa-ifcombine.cc. [PR126397] This condition is always true as checked by verify_gimple_cond in tree-cfg.cc. Bootstrapped and regtested on x86_64-pc-linux-gnu. PR tree-optimization/126397 gcc/ChangeLog: * tree-ssa-ifcombine.cc (ifcombine_ifandif): Remove true condition. Signed-off-by: Kael Andrew Franco <[email protected]> Diff: --- gcc/tree-ssa-ifcombine.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc index 829baa66416a..1b6ee9207cc1 100644 --- a/gcc/tree-ssa-ifcombine.cc +++ b/gcc/tree-ssa-ifcombine.cc @@ -1076,10 +1076,9 @@ ifcombine_ifandif (basic_block inner_cond_bb, bool inner_inv, } /* See if we have two comparisons that we can merge into one. */ - else bits_test_failed: - if (TREE_CODE_CLASS (gimple_cond_code (inner_cond)) == tcc_comparison - && TREE_CODE_CLASS (gimple_cond_code (outer_cond)) == tcc_comparison) + else { + bits_test_failed: tree t, ts = NULL_TREE; enum tree_code inner_cond_code = gimple_cond_code (inner_cond); enum tree_code outer_cond_code = gimple_cond_code (outer_cond);