From: Kazu Hirata Date: Fri, 27 Jun 2003 19:36:38 +0000 (+0000) Subject: cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality... X-Git-Tag: releases/gcc-3.4.0~5404 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74;p=thirdparty%2Fgcc.git cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison. * cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison. From-SVN: r68600 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0167bf64e461..deac68c14e59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-27 Kazu Hirata + + * cse.c (fold_rtx): Replace the equality comparison of INTVALs + with a pointer equality comparison. + 2003-06-27 Kazu Hirata * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN diff --git a/gcc/cse.c b/gcc/cse.c index a061817a3f1f..23942034e179 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -4219,7 +4219,7 @@ fold_rtx (x, insn) with a pre- or post-increment. Similarly for two subtracts of identical powers of two with post decrement. */ - if (code == PLUS && INTVAL (const_arg1) == INTVAL (inner_const) + if (code == PLUS && const_arg1 == inner_const && ((HAVE_PRE_INCREMENT && exact_log2 (INTVAL (const_arg1)) >= 0) || (HAVE_POST_INCREMENT