[PR middle-end/18628] do not fold to label load from tablejump to reg

Alexandre Oliva aoliva@redhat.com
Thu Mar 10 20:38:00 GMT 2005


On Mar 10, 2005, Richard Henderson <rth@gcc.gnu.org> wrote:

> On Wed, Mar 09, 2005 at 07:26:37AM -0300, Alexandre Oliva wrote:
>> +		/* If it's not a REG, the REG_EQUAL note is inappropriate.  */
>> +		if (REG_P (SET_DEST (set)))
>> +		  set_unique_reg_note (insn, REG_EQUAL, label);

> I don't think this is a good idea at all.  This is just
> asking for reload to recreate a reference to the deleted label.

Here's a patch with that bit removed, along with the change in
cse_init that it required.  Ok?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cse-no-tablejump-load-to-reg.patch
Type: text/x-patch
Size: 2498 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050310/604fb521/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Gcc-patches mailing list