This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37536] a mfcr is produced instead of branches (when it is used in branches later)
- 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: 16 Sep 2008 01:32:51 -0000
- Subject: [Bug fortran/37536] a mfcr is produced instead of branches (when it is used in branches later)
- References: <bug-37536-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-16 01:32 -------
> if (D.692 > 0 ? D.691 < D.690 : D.691 > D.690) goto L.2;
> I think the front-end might be better at optimizing this.
That is produce:
if (D.692 > 0)
{
if (D.691 < D.690) goto L.2;
}
else if (D.691 > D.690) goto L.2;
Or maybe the gimplifier should do that.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37536