diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-02 21:52:46 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-02 21:52:46 +0000 |
commit | 4c43a9988bd88e540c3415571576efd8a5e9e9fb (patch) | |
tree | c51807484f6834435dd02de83e9b094a6ed92fe2 /gcc/postreload-gcse.c | |
parent | f7a6fca499c181a012baa05673db826cbfe7cc61 (diff) | |
download | gcc-4c43a9988bd88e540c3415571576efd8a5e9e9fb.tar.gz |
2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
* cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
edges only, when there is a non-local label in the function.
* postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174585 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/postreload-gcse.c')
-rw-r--r-- | gcc/postreload-gcse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/postreload-gcse.c b/gcc/postreload-gcse.c index 0ee50d81229..bc55ead744f 100644 --- a/gcc/postreload-gcse.c +++ b/gcc/postreload-gcse.c @@ -912,12 +912,10 @@ get_avail_load_store_reg (rtx insn) static bool bb_has_well_behaved_predecessors (basic_block bb) { - unsigned int edge_count = EDGE_COUNT (bb->preds); edge pred; edge_iterator ei; - if (edge_count == 0 - || (edge_count == 1 && (single_pred_edge (bb)->flags & EDGE_ABNORMAL))) + if (EDGE_COUNT (bb->preds) == 0) return false; FOR_EACH_EDGE (pred, ei, bb->preds) @@ -925,6 +923,9 @@ bb_has_well_behaved_predecessors (basic_block bb) if ((pred->flags & EDGE_ABNORMAL) && EDGE_CRITICAL_P (pred)) return false; + if ((pred->flags & EDGE_ABNORMAL_CALL) && cfun->has_nonlocal_label) + return false; + if (JUMP_TABLE_DATA_P (BB_END (pred->src))) return false; } |