postreload.c (reload_cse_simplify): Skip also USE when detecting noop move.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 6 Oct 2016 13:45:45 +0000 (15:45 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 6 Oct 2016 13:45:45 +0000 (13:45 +0000)
* postreload.c (reload_cse_simplify): Skip also USE when detecting
noop move.

From-SVN: r240833

gcc/ChangeLog
gcc/postreload.c

index cf7505c41c1f78a4ba1ed637f6a9d0748b93f4cb..3799db0fb83d89e96ebe71ab1419d537d4a54e34 100644 (file)
@@ -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
index 61c1ce8028e3d8e6cab44f8f36be31fdc8a58f71..4f3a526981e82d35f953a576ec966fe7dfa9de1c 100644 (file)
@@ -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;
        }