[Bug middle-end/126363] fold_builtin_atomic_always_lock_free uses `INTVAL (expand_normal (arg0))` for INTEGER_CST

"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=126363

--- 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:b5e6f5d2d435aba79ed8568f19da25378c716714

commit r17-2687-gb5e6f5d2d435aba79ed8568f19da25378c716714
Author: Kael Andrew Alonzo Franco <[email protected]>
Date:   Fri Jul 24 08:42:44 2026 -0400

    middle-end: Replace INTEGER_CST + expand_normal with tree_to_uwhi.
[PR126363]

    Replace INTEGER_CST + expand_normal with tree_fits_uwhi_p + tree_to_uwhi
    since it is less expensive and is more readable.

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

            PR middle-end/126363

    gcc/ChangeLog:

            * builtins.cc (fold_builtin_atomic_always_lock_free): Replace
            INTEGER_CST + expand_normal with tree_to_uwhi.

    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.