X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fvalue-prof.c;h=4f6f3da599a90b1c834b01ef4ddd8a24f224f484;hb=0e7bd0dd7612870c454efdfb4ba114894972efe4;hp=3924fa76c184cdd5664412333239f852d2890950;hpb=1c6a7b8cc39ec895eb489656f01642d97a77c1b3;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 3924fa76c18..4f6f3da599a 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -132,7 +132,7 @@ insn_divmod_values_to_profile (rtx insn, unsigned *n_values, (*n_values)++; } - /* For mod, check whether it is not often a noop (or replacable by + /* For mod, check whether it is not often a noop (or replaceable by a few subtractions). */ if (GET_CODE (set_src) == UMOD && !side_effects_p (op1)) { @@ -314,7 +314,7 @@ find_values_to_profile (unsigned *n_values, struct histogram_value **values) we would have to be very careful here. */ bool -value_profile_transformations () +value_profile_transformations (void) { rtx insn, next; int changed = false; @@ -446,9 +446,9 @@ divmod_fixed_value_transform (rtx insn) histogram = XEXP (histogram, 1); all = INTVAL (XEXP (histogram, 0)); - /* We requiere that count is at least half of all; this means + /* We require that count is at least half of all; this means that for the transformation to fire the value must be constant - at least 50% of time (and 75% gives the garantee of usage). */ + at least 50% of time (and 75% gives the guarantee of usage). */ if (!rtx_equal_p (op2, value) || 2 * count < all) return false;