This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15618] Missed bool optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 17:22:04 -0000
- Subject: [Bug tree-optimization/15618] Missed bool optimization
- References: <20040523172058.15618.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-23 17:22 -------
To fix the second one, you change if (Boolvalue != 0) to be just if (BoolValue)
To fix the first one you have to combine the return statement on the tree level.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15618