summaryrefslogtreecommitdiff
path: root/gcc/lcm.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-04-28 05:03:09 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-04-28 05:03:09 +0000
commit2ca202e792186e9641f933ad0830266dbace0eeb (patch)
treefe6f1039398672aa41a8e7ee84c0d75a91f4b324 /gcc/lcm.c
parentb6f9abcfe37f1b295c17b97f351465467e47921d (diff)
bt-load.c, [...]: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate.
* bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c, function.c, global.c, lcm.c, loop-invariant.c, optabs.c, reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate. From-SVN: r98913
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r--gcc/lcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c
index d62bbb01a12..210e4d600b1 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -1000,7 +1000,7 @@ create_pre_exit (int n_entities, int *entity_map, const int *num_modes)
insert the final mode switch before the return value copy
to its hard register. */
if (EDGE_COUNT (EXIT_BLOCK_PTR->preds) == 1
- && GET_CODE ((last_insn = BB_END (src_bb))) == INSN
+ && NONJUMP_INSN_P ((last_insn = BB_END (src_bb)))
&& GET_CODE (PATTERN (last_insn)) == USE
&& GET_CODE ((ret_reg = XEXP (PATTERN (last_insn), 0))) == REG)
{