diff options
author | Bernd Schmidt <bernds@redhat.com> | 2015-11-25 10:23:28 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2015-11-25 10:23:28 +0000 |
commit | 70927cae316077708327bfe545a1464c7affe331 (patch) | |
tree | a800361128cc24f0094a756fb8eadf2d5420ce97 /gcc/alias.c | |
parent | 136108a1586bd329721f8b7b4f996c0267a29272 (diff) | |
download | gcc-70927cae316077708327bfe545a1464c7affe331.zip gcc-70927cae316077708327bfe545a1464c7affe331.tar.gz gcc-70927cae316077708327bfe545a1464c7affe331.tar.bz2 |
Remove broken ifcvt code for speculating memory writes
* ifcvt.c (noce_mem_write_may_trap_or_fault_p,
noce_can_store_speculate): Delete.
(noce_process_if_block): Don't try to handle single MEM stores.
* rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
* alias.c (memory_must_be_modified_in_insn_p): Delete.
From-SVN: r230864
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index fb7919a..9a642dd 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -3032,30 +3032,6 @@ set_dest_equal_p (const_rtx set, const_rtx item) return rtx_equal_p (dest, item); } -/* Like memory_modified_in_insn_p, but return TRUE if INSN will - *DEFINITELY* modify the memory contents of MEM. */ -bool -memory_must_be_modified_in_insn_p (const_rtx mem, const_rtx insn) -{ - if (!INSN_P (insn)) - return false; - insn = PATTERN (insn); - if (GET_CODE (insn) == SET) - return set_dest_equal_p (insn, mem); - else if (GET_CODE (insn) == PARALLEL) - { - int i; - for (i = 0; i < XVECLEN (insn, 0); i++) - { - rtx sub = XVECEXP (insn, 0, i); - if (GET_CODE (sub) == SET - && set_dest_equal_p (sub, mem)) - return true; - } - } - return false; -} - /* Initialize the aliasing machinery. Initialize the REG_KNOWN_VALUE array. */ |