This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15547] [tree-ssa] don't generate if (a != 0) for if (a)
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2004 01:59:36 -0000
- Subject: [Bug tree-optimization/15547] [tree-ssa] don't generate if (a != 0) for if (a)
- References: <20040519235519.15547.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2004-05-20 01:59 -------
(In reply to comment #1)
> The reason why this is not done this way as it would prevent some
optimizations from happening
What are those optimizations?
Code like this is generated during compilation, (try for example PR8361) and
look in any of the dumps, there are a lot of "if (VARIABLE)" occurences.
If the optimizers have problems with this, then it might be better not to
generate such code, or make sure that the optimizers can deal with it.
> and it is not the way it is done for most targets (yes x86 is the exception
here).
Can you please explain what you mean by this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15547