summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorwehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 05:03:29 +0000
committerwehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 05:03:29 +0000
commitc955554ce3546834af823086e1e60fe8e8f74adf (patch)
tree540dcb2ec38a4d7571f50545eadd91725b7f7b97 /gcc/gcse.c
parentc5144efad50d69be3950517725625f18c7b11b3e (diff)
downloadgcc-c955554ce3546834af823086e1e60fe8e8f74adf.tar.gz
* rtl.h (set_noop_p): Declare.
* flow.c (set_noop_p): Move from here ... * rtlanal.c (set_noop_p): ... to here and enhance. * cse.c (delete_trivially_dead_insns): Use it. * gcse.c (hash_scan_set): Likewise. * jump.c (delete_noop_moves): Likewise. * recog.c (split_all_insns): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41077 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index cac80f9d4b9..9eda522e859 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -1964,7 +1964,7 @@ hash_scan_set (pat, insn, set_p)
/* Is SET_SRC something we want to gcse? */
&& want_to_gcse_p (src)
/* Don't CSE a nop. */
- && src != dest)
+ && ! set_noop_p (pat))
{
/* An expression is not anticipatable if its operands are
modified before this insn or if this is not the only SET in