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 rtl-optimization/29860] New: comment / code incosistency in cfgcleanup.c:flow_find_cross_jump


X-Bugzilla-Reason: CC

http://gcc.gnu.org/ml/gcc/2005-01/msg00700.html

onsideriing this code:

 if (onlyjump_p (i2)
     || (returnjump_p (i2) && !side_effects_p (PATTERN (i2))))
   {
     last2 = i2;
     /* Count everything except for unconditional jump as insn.  */
     if (!simplejump_p (i2) && !returnjump_p (i2) && last1)
       ninsns++;
     i2 = PREV_INSN (i2);
   }


you count unconditional jumps with a clobber, but you don't count
conditional returns (, or even an instruction that solves a travelling
salesman problem and returns if it finds a solution within a given cost bound).


-- 
           Summary: comment / code incosistency in
                    cfgcleanup.c:flow_find_cross_jump
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
OtherBugsDependingO 29842
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29860


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