Re: [PATCH] Fix load_gsi computation in store-merging (PR tree-optimization/83047)

2017-11-21 Thread Richard Biener
On Mon, 20 Nov 2017, Jakub Jelinek wrote: > Hi! > > This is something the bswap pass has been already doing, but not the > new load handling code in store-merging. If all the loads have the same > vuse, it still doesn't mean they are necessarily in the same basic block. > If they are in multiple

[PATCH] Fix load_gsi computation in store-merging (PR tree-optimization/83047)

2017-11-20 Thread Jakub Jelinek
Hi! This is something the bswap pass has been already doing, but not the new load handling code in store-merging. If all the loads have the same vuse, it still doesn't mean they are necessarily in the same basic block. If they are in multiple bbs, previously we've chosen randomly (well, from the