Re: [PATCH] rtl-optimization/71709, strcpy arg optimised out
On 07/01/2016 09:19 AM, Alan Modra wrote: PR rtl-optimization/71709 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg being set, not referenced. Looks OK. Bernd
[PATCH] rtl-optimization/71709, strcpy arg optimised out
This patch fixes a thinko in find_call_crossed_cheap_reg. For functions that return an argument unchanged, like strcat, find_call_crossed_cheap_reg attempts to find an assignment between a pseudo reg and the arg reg before the call, so that uses of the pseudo after the call can instead use the ret