[Bug tree-optimization/120580] do_warn_nonnull_compare has special case for COND_EXPR

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120580

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kael Andrew Franco <[email protected]>:

https://gcc.gnu.org/g:e407d1bc83ae75d8a4ca0b0c04dcf0d843ce1d7a

commit r17-3269-ge407d1bc83ae75d8a4ca0b0c04dcf0d843ce1d7a
Author: Kael Andrew Alonzo Franco <[email protected]>
Date:   Wed Aug 12 19:55:10 2026 -0400

    tree-optimization: Remove dead code in gimple-ssa-nonnull-compare.cc.
[PR120580]

    This is dead since COND_EXPR is always a SSA_NAME or a constant.

    Bootstrapped and regtested on x86_64-pc-linux-gnu.

            PR tree-optimization/120580

    gcc/ChangeLog:

            * gimple-ssa-nonnull-compare.cc (do_warn_nonnull_compare):
            Remove dead code.

    Signed-off-by: Kael Andrew Franco <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.