summaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-04 00:47:14 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-04 00:47:14 +0000
commit9f449ed629f7865ec9fe91bf9d9d68e811450753 (patch)
tree75d518e5186a2da27e1bd86593dcab821b360f44 /gcc/rtlanal.c
parent0df58423b8c037458380235770f9d053b059b9ff (diff)
downloadgcc-9f449ed629f7865ec9fe91bf9d9d68e811450753.tar.gz
* rtl.def (PREFETCH): New rtx code.
* doc/rtl.texi (PREFETCH): Add documentation. * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx. * rtlanal.c (reg_referenced_p): Ditto. * sched-vis.c (print_exp): Ditto. * ssa-dce.c (find_inherently_necessary): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index eb79fe95476..07c467659cd 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -569,6 +569,9 @@ reg_referenced_p (x, body)
case TRAP_IF:
return reg_overlap_mentioned_p (x, TRAP_CONDITION (body));
+ case PREFETCH:
+ return reg_overlap_mentioned_p (x, XEXP (body, 0));
+
case UNSPEC:
case UNSPEC_VOLATILE:
for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
@@ -1456,6 +1459,10 @@ note_uses (pbody, fun, data)
(*fun) (&TRAP_CONDITION (body), data);
return;
+ case PREFETCH:
+ (*fun) (&XEXP (body, 0), data);
+ return;
+
case UNSPEC:
case UNSPEC_VOLATILE:
for (i = XVECLEN (body, 0) - 1; i >= 0; i--)