* rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.

From-SVN: r191586
This commit is contained in:
Joern Rennecke 2012-09-20 20:17:34 +00:00 committed by Joern Rennecke
parent 8750dfc52c
commit 10439b597d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
* rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
2012-09-20 Marek Polacek <polacek@redhat.com>
* tree-ssa-operands.c (get_expr_operands): Merge identical cases.

View File

@ -1701,8 +1701,9 @@ dead_or_set_regno_p (const_rtx insn, unsigned int test_regno)
pattern = PATTERN (insn);
/* If a COND_EXEC is not executed, the value survives. */
if (GET_CODE (pattern) == COND_EXEC)
pattern = COND_EXEC_CODE (pattern);
return 0;
if (GET_CODE (pattern) == SET)
return covers_regno_p (SET_DEST (pattern), test_regno);