This is the mail archive of the gcc-patches@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] |
Hello,
number_of_iterations_in_loop returns number of iterations by 1 higher than all the remaining functions. This is a bit confusing, and also inefficient (since the most common uses of number_of_iterations_in_loop, the returned number is immediatelly decreased by one).
The patch fixes the problem by replacing this function with two new ones (number_of_latch_executions and number_of_exit_cond_executions), whose names are hopefully a bit less ambiguous about what they are doing.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |