This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/14084] Reg allocator changes REG_EXPR
- From: "zlomek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2004 17:06:45 -0000
- Subject: [Bug middle-end/14084] Reg allocator changes REG_EXPR
- References: <20040209141044.14084.zlomek@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zlomek at gcc dot gnu dot org 2004-02-09 17:06 -------
> I see the problem here:
> (subreg/s:SI (reg/v:DI 118 [ repcount ]) 4)
> is changed to
> (reg:SI 30 [orig:118 repcount+4 ] [118])
Maybe I did not make myself clear.
IMHO the problem is that REG_EXPR is changed, i.e. [ repcount ] is changed to [
repcount+4 ].
If it it correct to have there [repcount+4] (because of the SImode) then it is
not correct following insn because repcount also has SImode but "repcount" in
REG_EXPR:
(insn 4 3 5 0 (set (reg:SI 0 0 [orig:119 repcount ] [119])
(reg:SI 0 0 [orig:118 repcount+4 ] [118])) 303 {*movsi_internal1} (nil)
(nil))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14084