This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30807] sh postreload bug (might be generic in trunk)
- From: "christian dot bruel at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2007 15:37:24 -0000
- Subject: [Bug middle-end/30807] sh postreload bug (might be generic in trunk)
- References: <bug-30807-9958@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from christian dot bruel at st dot com 2007-02-15 15:37 -------
The bug might be clearer to explain like this
we have
16: (set reg:r1) (const_int 188)
17: (set reg:r1) (plus (reg:r1 reg:r2)
18: (set reg:r1) (mem (plus (reg:r1) (const_int 4))
is transformed into
16: (set reg:r0) (const_int 192)
18: (set reg:r1) (mem (plus (reg:r0) (reg:r2))
since insn 18 is not reg_state[2].reg_use[i].insn, r2 might be seen as dead by
another similar combine transformation on previous insns
--
christian dot bruel at st dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |christian dot bruel at st
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30807