Re: [PATCH] Fix store-merging wrong-code issue (PR tree-optimization/86492)

2018-07-12 Thread Richard Biener
On Thu, 12 Jul 2018, Jakub Jelinek wrote: > Hi! > > The following testcase is a similar issue to PR84503 and the fix is similar, > because coalesce_immediate_stores temporarily sorts the stores on ascending > bitpos and if stores are merged, the merged store is emitted in the location > of the la

[PATCH] Fix store-merging wrong-code issue (PR tree-optimization/86492)

2018-07-11 Thread Jakub Jelinek
Hi! The following testcase is a similar issue to PR84503 and the fix is similar, because coalesce_immediate_stores temporarily sorts the stores on ascending bitpos and if stores are merged, the merged store is emitted in the location of the latest of the stores, we need to verify that there is no