Re: PR middle-end/53008 (trans-mem): output clone if function accessed indirectly

2012-05-30 Thread Aldy Hernandez
On 05/25/12 10:55, Richard Henderson wrote: On 05/25/2012 06:25 AM, Aldy Hernandez wrote: OK? Would this be acceptable for the 4.7 branch as well? curr PR middle-end/53008 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if accessed indirectly. (ipa_tm_create_version): Same. Ok

PR middle-end/53008 (trans-mem): output clone if function accessed indirectly

2012-05-25 Thread Aldy Hernandez
This is a patch from Patrick, based on an earlier patch by Dave Boutcher. Thanks folks. In the failing testcase below we have a transaction_safe function being accessed indirectly, but for -O1 and above, the corresponding clone is not generated because we think it is unused. Fixed by

Re: PR middle-end/53008 (trans-mem): output clone if function accessed indirectly

2012-05-25 Thread Richard Henderson
On 05/25/2012 06:25 AM, Aldy Hernandez wrote: OK? Would this be acceptable for the 4.7 branch as well? curr PR middle-end/53008 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if accessed indirectly. (ipa_tm_create_version): Same. Ok everywhere.