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: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2005 17:53:39 -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 schlie at comcast dot net 2005-05-01 17:53 -------
(In reply to comment #6)
> I have a fix which I am testing. One change to fold_binary to fold "bool_var != 0" to bool_var and
> one to fold_widened_comparison to treat BOOLEAN_TYPE like INTEGER_TYPE.
>
> This improves the gimplification process for PR8361 so we get about 4 less statements. And it
> lows the memory usage a little.
As widening operations are a target specific optimization, should any such optimization be in
the target's code generator, where it may decide how to best treat bool types and/or operations?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15618