Commit 8f7e6e33 by Bin Cheng Committed by Bin Cheng

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
parent 8aaba3a9
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):
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment