Re: [PATCH] Fix PR67037: Wrong code at -O1 and above on ARM

2015-09-30 Thread Vladimir Makarov
On 09/30/2015 07:40 AM, Bernd Edlinger wrote: Hi, I noticed, that this wrong code bug is caused by two insns which are created by the function process_addr_reg in lra-constraints.c, which share a common sub expression. The fix is rather simple, use copy_rtx when the memory reference is used t

[PATCH] Fix PR67037: Wrong code at -O1 and above on ARM

2015-09-30 Thread Bernd Edlinger
Hi, I noticed, that this wrong code bug is caused by two insns which are created by the function process_addr_reg in lra-constraints.c, which share a common sub expression. The fix is rather simple, use copy_rtx when the memory reference is used twice. The patch was boot-strapped and regressio