[Bug tree-optimization/126453] phiopt should combine phis in some cases

"pinskia 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=126453

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-07-28

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
This also should be after factoring too.  To begin with I am just going to
handle casting from bool to integer. And then add BIT_NOT before the cast also
and NEGATIVE after the cast; that is 1:0->0:1 and 1:0->-1:0/0:-1. This should
allow to catch most cases in the end I think.
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.