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:
Geoff Keating 2000-01-19 20:21:08 +00:00 committed by Geoffrey Keating
parent 7845896296
commit 0d3ffb5ae4
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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;
}