This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix recog_for_combine (was Re: [testcase] -fssa -fssa-ccp -march=i686 ICE)
On Sat, Feb 02, 2002 at 01:38:58PM -0800, Richard Henderson wrote:
> On Sat, Feb 02, 2002 at 10:30:53PM +0100, Jakub Jelinek wrote:
> > * combine.c (recog_for_combine): Create a dummy insn with PATTERN
> > pat for recog.
> >
> > * gcc.dg/20020201-4.c: New test.
>
> Ok except,
>
> > + dummy_insn = shallow_copy_rtx (insn);
>
> Why use shallow_copy_rtx instead of gen_rtx_INSN?
I wanted to preserve INSN/JUMP_INSN/CALL_INSN too (don't know if any machine
description actually cares about it, but wanted to be safe).
If you think gen_rtx_INSN is safe thing to do, I'll change it.
Jakub