This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14011] [tree-ssa] C++ doesn't optimize bool as well as C.
- 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: 4 Feb 2004 06:31:55 -0000
- Subject: [Bug optimization/14011] [tree-ssa] C++ doesn't optimize bool as well as C.
- References: <20040204061434.14011.rth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-04 06:31 -------
Confirmed, the difference is how the frontend does if(!bool).
C++:
T.0 = !my_bool;
if (T.0)
C:
my_bool.0 = (int)my_bool;
if (my_bool.0 == 0)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |pessimizes-code
Last reconfirmed|0000-00-00 00:00:00 |2004-02-04 06:31:55
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14011