This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28794] missed optimization with non-COND_EXPR and vrp and comparisions
- 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: 21 Aug 2006 23:52:53 -0000
- Subject: [Bug tree-optimization/28794] missed optimization with non-COND_EXPR and vrp and comparisions
- References: <bug-28794-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-21 23:52 -------
For x86, there is no difference in the code gen for f and f1/f2, but for PPC32,
there is:
for f1/f2:
addic %r0,%r31,-1
subfe %r3,%r0,%r31
For f:
srawi %r3,%r31,31
subf %r3,%r31,%r3
srwi %r3,%r3,31
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|missed optimization with non|missed optimization with
|COND_EXPR and vrp and |non-COND_EXPR and vrp and
|comparisions |comparisions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28794