This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37536] [4.3/4.4 Regression] a mfcr is produced instead of branches for DO loops



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]