diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-01 13:40:35 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-01 13:40:35 +0000 |
commit | 6d7105fe4a7d259ce5b9d2d1f90282a45d82af07 (patch) | |
tree | 3d1a42a39b3f8ad8f92b0f63c0dbd403f943ed08 /gcc/tree-ssa-address.c | |
parent | cf4089a8eb480cd4e6f1f5e78e249072a4b986c9 (diff) | |
download | gcc-6d7105fe4a7d259ce5b9d2d1f90282a45d82af07.tar.gz |
* tree.h (copy_mem_ref_info): Delete.
* tree-ssa-address.c (copy_mem_ref_info): Likewise.
(maybe_fold_tmr): Copy flags manually.
* tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r-- | gcc/tree-ssa-address.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index caa51be6a5d..c5b8ff1056b 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -821,16 +821,6 @@ get_address_description (tree op, struct mem_address *addr) addr->offset = TMR_OFFSET (op); } -/* Copies the additional information attached to target_mem_ref FROM to TO. */ - -void -copy_mem_ref_info (tree to, tree from) -{ - /* And the info about the original reference. */ - TREE_SIDE_EFFECTS (to) = TREE_SIDE_EFFECTS (from); - TREE_THIS_VOLATILE (to) = TREE_THIS_VOLATILE (from); -} - /* Copies the reference information from OLD_REF to NEW_REF, where NEW_REF should be either a MEM_REF or a TARGET_MEM_REF. */ @@ -901,7 +891,7 @@ maybe_fold_tmr (tree ref) { struct mem_address addr; bool changed = false; - tree ret, off; + tree new_ref, off; get_address_description (ref, &addr); @@ -962,10 +952,11 @@ maybe_fold_tmr (tree ref) ended up folding it, always create a new TARGET_MEM_REF regardless if it is valid in this for on the target - the propagation result wouldn't be anyway. */ - ret = create_mem_ref_raw (TREE_TYPE (ref), - TREE_TYPE (addr.offset), &addr, false); - copy_mem_ref_info (ret, ref); - return ret; + new_ref = create_mem_ref_raw (TREE_TYPE (ref), + TREE_TYPE (addr.offset), &addr, false); + TREE_SIDE_EFFECTS (new_ref) = TREE_SIDE_EFFECTS (ref); + TREE_THIS_VOLATILE (new_ref) = TREE_THIS_VOLATILE (ref); + return new_ref; } /* Dump PARTS to FILE. */ |