This is the mail archive of the gcc@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]

comment / code incosistency in cfgcleanup.c:flow_find_cross_jump


Consideriing 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).



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