[PATCH][cse][3/4] Don't overwrite original rtx when folding source of set

2016-01-22 Thread Kyrill Tkachov
Hi all, This patch is a consequence of the thread I started at https://gcc.gnu.org/ml/gcc/2016-01/msg00100.html The problem is that the fold_rtx call in cse_insn may overwrite its argument if the insn argument is non-NULL. This leads to CSE not considering the original form of the RTX when

Re: [PATCH][cse][3/4] Don't overwrite original rtx when folding source of set

2016-01-22 Thread Richard Biener
On Fri, Jan 22, 2016 at 10:52 AM, Kyrill Tkachov wrote: > Hi all, > > This patch is a consequence of the thread I started at > https://gcc.gnu.org/ml/gcc/2016-01/msg00100.html > The problem is that the fold_rtx call in cse_insn may overwrite its argument > if the insn