rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.

* rtlanal.c (noop_move_p): Check the code to be executed for
	COND_EXEC.

From-SVN: r200061
This commit is contained in:
Bin Cheng 2013-06-13 08:33:39 +00:00 committed by Bin Cheng
parent 8aaba3a9a7
commit 8f7e6e330b
2 changed files with 9 additions and 0 deletions

View 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):

View 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;