http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43491
--- Comment #4 from amker.cheng 2011-12-21
03:44:03 UTC ---
This bug is even worse on mips.
The cause is ssa-pre eliminates global register variable when it is the RHS of
single assign statment, while following passes do not handle the const/reg
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43491
--- Comment #3 from amker.cheng 2011-11-24
09:24:37 UTC ---
(In reply to comment #1)
>
> I'm thinking that this is perfectly normal thing to do, and that the redundant
> move is meant to disappear in a later pass. My guess is that IRA is choos
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43491
amker.cheng changed:
What|Removed |Added
CC||amker.cheng at gmail dot
--- Comment #1 from ibolton at gcc dot gnu dot org 2010-09-08 16:21 ---
reg is assigned to a temporary (reg.0) at the very first tree pass, as shown by
this 004t.gimple dump:
d ()
{
struct b * const reg.0;
unsigned int * D.2019;
int D.2020;
goto ;
:
c ();
:
reg.0 = reg;