rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
authorBin Cheng <bin.cheng@arm.com>
Thu, 13 Jun 2013 08:33:39 +0000 (08:33 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 13 Jun 2013 08:33:39 +0000 (08:33 +0000)
* rtlanal.c (noop_move_p): Check the code to be executed for
COND_EXEC.

From-SVN: r200061

gcc/ChangeLog
gcc/rtlanal.c

index 19e1b4cd8cb574ed3de70b00b20fea8d243b995e..1d498f8a7453dedd033991c6e7d66b5c696934df 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-13  Bin Cheng  <bin.cheng@arm.com>
+
+       * rtlanal.c (noop_move_p): Check the code to be executed for
+       COND_EXEC.
+
 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
 
        * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
index fe708488444b72063ee5ed93e5d337bdffddf544..9567694bc1581c16d9cb47b8ddef654ee193b891 100644 (file)
@@ -1199,6 +1199,10 @@ noop_move_p (const_rtx insn)
   if (find_reg_note (insn, REG_EQUAL, NULL_RTX))
     return 0;
 
+  /* Check the code to be executed for COND_EXEC.  */
+  if (GET_CODE (pat) == COND_EXEC)
+    pat = COND_EXEC_CODE (pat);
+
   if (GET_CODE (pat) == SET && set_noop_p (pat))
     return 1;