summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authoreraman <eraman@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 23:28:45 +0000
committereraman <eraman@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 23:28:45 +0000
commite065d0bc401f9798d48e7866ec7ca75f7ebafc4a (patch)
tree00353207588e4eea26cb41263c8d1cd8745f0aa1 /gcc/optabs.c
parent2dc9831fc1c17840efc629788027aeededa44d2f (diff)
downloadgcc-e065d0bc401f9798d48e7866ec7ca75f7ebafc4a.tar.gz
2012-10-31 Easwaran Raman <eraman@google.com>
PR target/54938 PR middle-end/54957 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note only if it doesn't already exist. * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL. (emit_case_dispatch_table): Handle the case where STMT_BB is NULL. (expand_sjlj_dispatch_table): Pass BB containing before_case to emit_case_dispatch_table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index e22031615fa..bba93c2d561 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4268,11 +4268,9 @@ emit_cmp_and_jump_insn_1 (rtx test, enum machine_mode mode, rtx label, int prob)
&& profile_status != PROFILE_ABSENT
&& insn
&& JUMP_P (insn)
- && any_condjump_p (insn))
- {
- gcc_assert (!find_reg_note (insn, REG_BR_PROB, 0));
- add_reg_note (insn, REG_BR_PROB, GEN_INT (prob));
- }
+ && any_condjump_p (insn)
+ && !find_reg_note (insn, REG_BR_PROB, 0))
+ add_reg_note (insn, REG_BR_PROB, GEN_INT (prob));
}
/* Generate code to compare X with Y so that the condition codes are