summaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-13 08:33:39 +0000
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-13 08:33:39 +0000
commit3f0def8e0eac83e7e849599c958bf38f6857e667 (patch)
tree8ab9b7ced91856ad32a29d6b85464afb2b6895e4 /gcc/rtlanal.c
parenta11c1e54832f69b7ebb219d5a09047adad1df95a (diff)
downloadgcc-3f0def8e0eac83e7e849599c958bf38f6857e667.tar.gz
* rtlanal.c (noop_move_p): Check the code to be executed for
COND_EXEC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index fe708488444..9567694bc15 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -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;