This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: patch for usage of more accurate live information for the globaland the reload.
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Vladimir Makarov <vmakarov at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 13 Jun 2004 18:10:35 -0400
- Subject: Re: RFA: patch for usage of more accurate live information for the globaland the reload.
- References: <40A9028B.3050908@redhat.com>
The patch causes a regression on PowerPC:
/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c: In
function `foo':
/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c:53:
error: insn does not satisfy its constraints:
(insn:HI 184 247 248 0 (parallel [
(set (reg:SI 28 28 [185])
(lshiftrt:SI (neg:SI (abs:SI (reg/v:SI 0 0 [orig:126 m_max
] [126])))
(const_int 31 [0x1f])))
(clobber (reg:SI 0 0))
]) 418 {*ne0} (nil)
(nil))
/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c:53:
internal compiler error: in reload_cse_simplify_operands, at
postreload.c:378
The pattern is:
(define_insn "*ne0"
[(set (match_operand:SI 0 "gpc_reg_operand" "=&r")
(lshiftrt:SI (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r")))
(const_int 31)))
(clobber (match_scratch:SI 2 "=&r"))]
and after your patch, GPR r0 is allocated to both operand0 and operand2,
which are early clobber.
Would you please investigate and fix this?
Thanks, David