On 08/19/2016 10:32 AM, Andrew Haley wrote:
On 18/08/16 19:54, Avi Kivity wrote:I replicated it on Fedora 24's gcc; in fact -O2 code is worse (but -O3 is fine):So -O3 is fine; O2 isn't doing the analysis to merge the stores. No bug.
Ok. 5.3.1 missed it on -O3 too, but as it's just a missed optimization, it's not too bad.
I'll file a bug for the missed optimization with __restrict and -O3.
Andrew.