This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/18628] [4.0/4.1 regression] miscompilation of switch statement in loop
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2005 13:46:42 -0000
- Subject: [Bug rtl-optimization/18628] [4.0/4.1 regression] miscompilation of switch statement in loop
- References: <20041123151338.18628.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rth at gcc dot gnu dot org 2005-03-10 13:46 -------
Subject: Re: [PR middle-end/18628] do not fold to label load from tablejump to reg
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.
r~
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18628