From 01aa1d43e4cf1a77639ea8839d4de13d440eba64 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 28 Jan 2005 17:12:08 +0000 Subject: * cse.c (fold_rtx) : Don't optimize. From-SVN: r94378 --- gcc/ChangeLog | 4 ++++ gcc/cse.c | 12 +----------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e806b3..af2c494 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-01-28 Kazu Hirata + + * cse.c (fold_rtx) : Don't optimize. + 2005-01-28 Jeff Law * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X. diff --git a/gcc/cse.c b/gcc/cse.c index 4bc2014..762c0c9 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -3265,6 +3265,7 @@ fold_rtx (rtx x, rtx insn) case SYMBOL_REF: case LABEL_REF: case REG: + case PC: /* No use simplifying an EXPR_LIST since they are used only for lists of args in a function call's REG_EQUAL note. */ @@ -3276,17 +3277,6 @@ fold_rtx (rtx x, rtx insn) return prev_insn_cc0; #endif - case PC: - /* If the next insn is a CODE_LABEL followed by a jump table, - PC's value is a LABEL_REF pointing to that label. That - lets us fold switch statements on the VAX. */ - { - rtx next; - if (insn && tablejump_p (insn, &next, NULL)) - return gen_rtx_LABEL_REF (Pmode, next); - } - break; - case SUBREG: /* See if we previously assigned a constant value to this SUBREG. */ if ((new = lookup_as_function (x, CONST_INT)) != 0 -- cgit v1.1