aboutsummaryrefslogtreecommitdiff
path: root/gcc/ssa.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2001-07-06 18:19:47 +0000
committerJeff Law <law@gcc.gnu.org>2001-07-06 12:19:47 -0600
commitb62c888152fb7d3245bbea7464c50aef8fe1c8fa (patch)
tree67a0b8b6cde5491a35db8bb2eecd5ab0f821a64e /gcc/ssa.c
parent9d99ca5b1edb6322b3e7429cc17ff26e972677b4 (diff)
downloadgcc-b62c888152fb7d3245bbea7464c50aef8fe1c8fa.zip
gcc-b62c888152fb7d3245bbea7464c50aef8fe1c8fa.tar.gz
gcc-b62c888152fb7d3245bbea7464c50aef8fe1c8fa.tar.bz2
basic-block.h (first_insn_after_basic_block_note): Declare.
* basic-block.h (first_insn_after_basic_block_note): Declare. * flow.c (first_insn_after_basic_block_note): Define. Moved from... * ssa.c (first_insn_after_basic_block_note): Remove. * ssa-dce.c (find_inherently_necessary): Consider BARRIERs necessary. (ssa_eliminate_dead_code): Properly update the CFG and PHI nodes when we find a dead conditional branch. Insert BARRIERs after any blocks with no successors, but which do not have any BARRIERs. From-SVN: r43816
Diffstat (limited to 'gcc/ssa.c')
-rw-r--r--gcc/ssa.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/ssa.c b/gcc/ssa.c
index 97e259b..cad10ca 100644
--- a/gcc/ssa.c
+++ b/gcc/ssa.c
@@ -162,8 +162,6 @@ struct rename_context;
static inline rtx * phi_alternative
PARAMS ((rtx, int));
-static rtx first_insn_after_basic_block_note
- PARAMS ((basic_block));
static void compute_dominance_frontiers_1
PARAMS ((sbitmap *frontiers, int *idom, int bb, sbitmap done));
static void find_evaluations_1
@@ -633,28 +631,6 @@ compute_iterated_dominance_frontiers (idfs, frontiers, evals, nregs)
}
}
-/* Return the INSN immediately following the NOTE_INSN_BASIC_BLOCK
- note associated with the BLOCK. */
-
-static rtx
-first_insn_after_basic_block_note (block)
- basic_block block;
-{
- rtx insn;
-
- /* Get the first instruction in the block. */
- insn = block->head;
-
- if (insn == NULL_RTX)
- return NULL_RTX;
- if (GET_CODE (insn) == CODE_LABEL)
- insn = NEXT_INSN (insn);
- if (!NOTE_INSN_BASIC_BLOCK_P (insn))
- abort ();
-
- return NEXT_INSN (insn);
-}
-
/* Insert the phi nodes. */
static void