From d777b5c24a14a965ef08f679c4ab15c38d67f2a8 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Mon, 21 Aug 2000 09:18:05 +0000 Subject: [PATCH] * flow.c (init_propagate_block_info): Handle SUBREG in a jump condition expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35835 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/flow.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d1c66e4b02..53d0e6cc12a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-21 Richard Earnshaw + + * flow.c (init_propagate_block_info): Handle SUBREG in a jump + condition expression. + 2000-08-20 Richard Henderson * flow.c (merge_blocks_nomove): Don't seek back past the bb note. diff --git a/gcc/flow.c b/gcc/flow.c index a1ea1a835c2..e37512acc42 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 -- 2.11.4.GIT