gimple-ssa-store-merging.c: fix sort_by_bitpos
* gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos. From-SVN: r250394
This commit is contained in:
parent
584bafb66d
commit
109cca3b53
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,8 @@
|
|||
2017-07-18 Jan Hubicka <hubicka@ucw.cz>
|
||||
2017-07-20 Alexander Monakov <amonakov@ispras.ru>
|
||||
|
||||
* gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
|
||||
|
||||
2017-07-20 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* bb-reorder.c (connect_traces): Allow copying of blocks within
|
||||
single partition.
|
||||
|
|
|
@ -516,12 +516,12 @@ sort_by_bitpos (const void *x, const void *y)
|
|||
store_immediate_info *const *tmp = (store_immediate_info * const *) x;
|
||||
store_immediate_info *const *tmp2 = (store_immediate_info * const *) y;
|
||||
|
||||
if ((*tmp)->bitpos <= (*tmp2)->bitpos)
|
||||
if ((*tmp)->bitpos < (*tmp2)->bitpos)
|
||||
return -1;
|
||||
else if ((*tmp)->bitpos > (*tmp2)->bitpos)
|
||||
return 1;
|
||||
|
||||
gcc_unreachable ();
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Sorting function for store_immediate_info objects.
|
||||
|
|
Loading…
Add table
Reference in a new issue