mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 14:19:33 +08:00
rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs inside the MEM.
* rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs inside the MEM. From-SVN: r31509
This commit is contained in:
parent
7845896296
commit
0d3ffb5ae4
@ -1,3 +1,8 @@
|
||||
2000-01-19 Geoff Keating <geoffk@cygnus.com>
|
||||
|
||||
* rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
|
||||
inside the MEM.
|
||||
|
||||
2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
|
||||
|
||||
* loop.c (loop_optimize): Allocate loop_info structure for each loop
|
||||
|
@ -422,6 +422,12 @@ reg_referenced_p (x, body)
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
case CLOBBER:
|
||||
if (GET_CODE (XEXP (body, 0)) == MEM)
|
||||
if (reg_overlap_mentioned_p (x, XEXP (XEXP (body, 0), 0)))
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user