diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-07-06 14:21:51 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-07-06 14:21:51 +0000 |
commit | f9c083450b972ceda2202c0fc483ce63226bc225 (patch) | |
tree | eb3fbdda242bae62e25ae4f0832be5d62cfcbeca | |
parent | 2d0c270fd266218ff040965bb8231729df9144f1 (diff) | |
download | gcc-f9c083450b972ceda2202c0fc483ce63226bc225.zip gcc-f9c083450b972ceda2202c0fc483ce63226bc225.tar.gz gcc-f9c083450b972ceda2202c0fc483ce63226bc225.tar.bz2 |
* simplify-rtx.c (simplify_ternary_operation): Remove dead code.
From-SVN: r175918
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e06f369..25ff606 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -16,6 +16,8 @@ Likewise. * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare. + * simplify-rtx.c (simplify_ternary_operation): Remove dead code. + 2011-07-06 Richard Guenther <rguenther@suse.de> PR tree-optimization/49645 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 6a5ec1a..232776f 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -4970,15 +4970,6 @@ simplify_ternary_operation (enum rtx_code code, enum machine_mode mode, val |= ~ (((unsigned HOST_WIDE_INT) 1 << INTVAL (op1)) - 1); } - /* Clear the bits that don't belong in our mode, - unless they and our sign bit are all one. - So we get either a reasonable negative value or a reasonable - unsigned value for this mode. */ - if (width < HOST_BITS_PER_WIDE_INT - && ((val & ((unsigned HOST_WIDE_INT) (-1) << (width - 1))) - != ((unsigned HOST_WIDE_INT) (-1) << (width - 1)))) - val &= ((unsigned HOST_WIDE_INT) 1 << width) - 1; - return gen_int_mode (val, mode); } break; |