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] |
I probably would have written the code as, which saves an extra test in the case where the comparison is not 0:
if (result == 0) { result = (* pp2)->first_partition - (* pp1)->first_partition; if (result == 0) result = (* pp2)->first_partition - (* pp1)->first_partition; }
gcc/ChangeLog 2007-08-20 Nick Clifton <nickc@redhat.com>
* tree-ssa-live.c (compare_pairs): Stabalize the comparison by checking the partition indicies if the costs are the same.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |