This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR middle-end/20491] combine generates bad subregs
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: aoliva at redhat dot com
- Cc: gcc-bugzilla at gcc dot gnu dot org, gcc-patches at gnu dot org
- Date: Thu, 24 Mar 05 07:39:44 EST
- Subject: Re: [PR middle-end/20491] combine generates bad subregs
Combine doesn't ensure the subregs it generates are valid. In most
cases, insn recog will reject the invalid subregs, or reload will
some how make them fit, but if the constraint of the insn or the asm
operand is "X", this won't work, so I think we're better off ensuring
we don't ever introduce subregs of non-REGs.
Aside from calling recog combine doesn't check that *anything* it generates
is valid. Why should subregs be different?