Skip to content

Commit

Permalink
Change mv_freq_cmp for decreasing frequency order.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmakarov committed Oct 31, 2023
1 parent 9d5c898 commit e51e678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mir-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -6783,8 +6783,8 @@ static int mv_freq_cmp (const void *v1p, const void *v2p) {
const mv_t *mv1 = (const mv_t *) v1p;
const mv_t *mv2 = (const mv_t *) v2p;

if (mv1->freq < mv2->freq) return -1;
if (mv1->freq > mv2->freq) return 1;
if (mv1->freq > mv2->freq) return -1;
if (mv1->freq < mv2->freq) return 1;
return (long) mv1->bb_insn->index - (long) mv2->bb_insn->index;
}

Expand Down

0 comments on commit e51e678

Please sign in to comment.