Re: [PATCH] Fix store-merging of cst followed by load (PR tree-optimization/82954)

2017-11-13 Thread Richard Biener
On Sun, 12 Nov 2017, Jakub Jelinek wrote: > Hi! > > The conditions split groups if some operand is loaded in first stmt > and the second load is incompatible with it, or if it is loaded and > second stmt has constant in there instead of load. > But as this testcase shows, I didn't handle properly

[PATCH] Fix store-merging of cst followed by load (PR tree-optimization/82954)

2017-11-12 Thread Jakub Jelinek
Hi! The conditions split groups if some operand is loaded in first stmt and the second load is incompatible with it, or if it is loaded and second stmt has constant in there instead of load. But as this testcase shows, I didn't handle properly the case when some operand is a constant first and in