aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-10-06 15:45:45 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-10-06 13:45:45 +0000
commitc6a2617973f6e7d1359a08b941c27c6d5287563b (patch)
treef3b45414c7d5e9374a1645daa9b8a5a764f7654b /gcc
parentb397258804e5a50731f1f8084f7992996b0f3ae0 (diff)
downloadgcc-c6a2617973f6e7d1359a08b941c27c6d5287563b.zip
gcc-c6a2617973f6e7d1359a08b941c27c6d5287563b.tar.gz
gcc-c6a2617973f6e7d1359a08b941c27c6d5287563b.tar.bz2
postreload.c (reload_cse_simplify): Skip also USE when detecting noop move.
* postreload.c (reload_cse_simplify): Skip also USE when detecting noop move. From-SVN: r240833
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/postreload.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cf7505c..3799db0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-06 Jan Hubicka <hubicka@ucw.cz>
+
+ * postreload.c (reload_cse_simplify): Skip also USE when detecting
+ noop move.
+
2016-10-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/77855
diff --git a/gcc/postreload.c b/gcc/postreload.c
index 61c1ce8..4f3a526 100644
--- a/gcc/postreload.c
+++ b/gcc/postreload.c
@@ -153,7 +153,8 @@ reload_cse_simplify (rtx_insn *insn, rtx testreg)
value = SET_DEST (part);
}
}
- else if (GET_CODE (part) != CLOBBER)
+ else if (GET_CODE (part) != CLOBBER
+ && GET_CODE (part) != USE)
break;
}