From 056b68414ebe6f82a052ae1aaf1ea5c4c6d2bcaf Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Mon, 21 Aug 2000 09:18:05 +0000 Subject: flow.c (init_propagate_block_info): Handle SUBREG in a jump condition expression. * flow.c (init_propagate_block_info): Handle SUBREG in a jump condition expression. From-SVN: r35835 --- gcc/flow.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc/flow.c') diff --git a/gcc/flow.c b/gcc/flow.c index a1ea1a8..e37512a 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -3727,9 +3727,15 @@ init_propagate_block_info (bb, live, local_set, flags) if (bitmap_operation (diff, bb_true->global_live_at_start, bb_false->global_live_at_start, BITMAP_XOR)) { - if (GET_CODE (XEXP (cond_true, 0)) != REG) + rtx reg = XEXP (cond_true, 0); + + if (GET_CODE (reg) == SUBREG) + reg = SUBREG_REG (reg); + + if (GET_CODE (reg) != REG) abort (); - SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond_true, 0))); + + SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (reg)); /* For each such register, mark it conditionally dead. */ EXECUTE_IF_SET_IN_REG_SET -- cgit v1.1