This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37536] [4.3/4.4 Regression] a mfcr is produced instead of branches for DO loops
- From: "jakub 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 22:17:02 -0000
- Subject: [Bug fortran/37536] [4.3/4.4 Regression] a mfcr is produced instead of branches for DO loops
- References: <bug-37536-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2008-09-16 22:17 -------
An ifcombine optimization is certainly desirable, still IMHO it makes sense to
do something about it in the FE too. The vanilla f951 generated code contains
essentially 3 different conditional expressions on step > 0, and one of those
is assigned to a var to be used by another COND_EXPR. One is the empty
COND_EXPR,
another is step > 0 ? to - from : from - to and another is ABS_EXPR <step>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37536