Re: [PATCH] Fix rtl sharing bug in the combiner (PR rtl-optimization/79909)

2017-03-09 Thread Segher Boessenkool
Hi Jakub, On Thu, Mar 09, 2017 at 10:12:17PM +0100, Jakub Jelinek wrote: > The following testcase fails on ppc* due to invalid RTL sharing. > The problem is that replace_rtx never copy_rtx or copy_rtx_if_shared > anything, so if i{2,1,0}dest is present in CALL_INSN_FUNCTION_USAGE more > than once,

[PATCH] Fix rtl sharing bug in the combiner (PR rtl-optimization/79909)

2017-03-09 Thread Jakub Jelinek
Hi! The following testcase fails on ppc* due to invalid RTL sharing. The problem is that replace_rtx never copy_rtx or copy_rtx_if_shared anything, so if i{2,1,0}dest is present in CALL_INSN_FUNCTION_USAGE more than once, and corresponding i{2,1,0}src is non-shareable RTL, then we ICE. On the othe