* tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Stabilize sort.
* ira-color (allocno_hard_regs_compare): Likewise.
From-SVN: r256682
+2018-01-14 Cory Fields <cory-nospam-@coryfields.com>
+
+ * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Stabilize sort.
+ * ira-color (allocno_hard_regs_compare): Likewise.
+
2018-01-14 Nathan Rossi <nathan@nathanrossi.com>
PR target/83013
return 1;
else if (hv2->cost < hv1->cost)
return -1;
- else
- return 0;
+ return SORTGT (allocno_hard_regs_hasher::hash(hv2), allocno_hard_regs_hasher::hash(hv1));
}
\f
struct loop *loop1 = bb1->loop_father;
struct loop *loop2 = bb2->loop_father;
if (loop1->num == loop2->num)
- return 0;
+ return bb1->index - bb2->index;
return bb_loop_postorder[loop1->num] < bb_loop_postorder[loop2->num] ? -1 : 1;
}