This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54154] cprop_hardreg generates redundant instructions
- From: "Paulo.Matos at csr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Aug 2012 15:00:34 +0000
- Subject: [Bug middle-end/54154] cprop_hardreg generates redundant instructions
- Auto-submitted: auto-generated
- References: <bug-54154-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54154
Paulo J. Matos <Paulo.Matos at csr dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #3 from Paulo J. Matos <Paulo.Matos at csr dot com> 2012-08-01 15:00:34 UTC ---
OK, so I just noted this is not really a bug but a missed optimization:
/* Assert that SRC has been copied to DEST. Adjust the data structures to
reflect that SRC contains an older copy of the shared value. */
static void
copy_value (rtx dest, rtx src, struct value_data *vd)
{
unsigned int dr = REGNO (dest);
unsigned int sr = REGNO (src);
unsigned int dn, sn;
unsigned int i;
/* ??? At present, it's possible to see noop sets. It'd be nice if this were
cleaned up beforehand... */
if (sr == dr)
return;
....