summaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-14 17:21:43 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-14 17:21:43 +0000
commite1ed78c8fd21c298d049b223765cf1da3854bf6d (patch)
tree03c55dbffafa1e073bc6036b1d3061203f89164c /gcc/resource.c
parent9d853199c08287dff431bace6fffd57c1d46a118 (diff)
downloadgcc-e1ed78c8fd21c298d049b223765cf1da3854bf6d.tar.gz
* resource.h (struct resources): Remove unch_memory member.
(CLEAR_RESOURCE): Don't clear unch_memory. * resource.c (mark_referenced_resources): Don't set it. (mark_set_resources): Likewise. (mark_target_live_regs): Don't clear it. (init_resource_info): Likewise. * reorg.c (resource_conflicts_p): Don't compare it. (redundant_insn): Don't set it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/resource.c b/gcc/resource.c
index 6051313732e..a0fd2ec4e69 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -240,9 +240,7 @@ mark_referenced_resources (rtx x, struct resources *res,
case MEM:
/* If this memory shouldn't change, it really isn't referencing
memory. */
- if (MEM_READONLY_P (x))
- res->unch_memory = 1;
- else
+ if (! MEM_READONLY_P (x))
res->memory = 1;
res->volatil |= MEM_VOLATILE_P (x);
@@ -740,7 +738,6 @@ mark_set_resources (rtx x, struct resources *res, int in_dest,
if (in_dest)
{
res->memory = 1;
- res->unch_memory |= MEM_READONLY_P (x);
res->volatil |= MEM_VOLATILE_P (x);
}
@@ -896,7 +893,7 @@ mark_target_live_regs (rtx insns, rtx target, struct resources *res)
/* We have to assume memory is needed, but the CC isn't. */
res->memory = 1;
- res->volatil = res->unch_memory = 0;
+ res->volatil = 0;
res->cc = 0;
/* See if we have computed this value already. */
@@ -1145,7 +1142,6 @@ init_resource_info (rtx epilogue_insn)
end_of_function_needs.cc = 0;
end_of_function_needs.memory = 1;
- end_of_function_needs.unch_memory = 0;
CLEAR_HARD_REG_SET (end_of_function_needs.regs);
if (frame_pointer_needed)