diff options
author | Kai Tietz <ktietz@redhat.com> | 2011-07-01 12:00:25 +0200 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-07-01 12:00:25 +0200 |
commit | 80d3dd383afb693f1842716d001d358976910ce9 (patch) | |
tree | 6a646debc5f7387d42725050bda0c5187864da5c /gcc/tree-ssa-forwprop.c | |
parent | 179fc656fa0a2ca7a820a0129237733374c466f5 (diff) | |
download | gcc-80d3dd383afb693f1842716d001d358976910ce9.zip gcc-80d3dd383afb693f1842716d001d358976910ce9.tar.gz gcc-80d3dd383afb693f1842716d001d358976910ce9.tar.bz2 |
tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2011-07-01 Kai Tietz <ktietz@redhat.com>
* tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2011-07-01 Kai Tietz <ktietz@redhat.com>
* gcc.dg/tree-ssa/bitwise-sink.c: New test.
From-SVN: r175752
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index e93acdf..893f17b 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -1675,7 +1675,7 @@ simplify_bitwise_binary (gimple_stmt_iterator *gsi) /* Try to fold (type) X op CST -> (type) (X op ((type-x) CST)). */ if (TREE_CODE (arg2) == INTEGER_CST && CONVERT_EXPR_CODE_P (def1_code) - && INTEGRAL_TYPE_P (def1_arg1) + && INTEGRAL_TYPE_P (TREE_TYPE (def1_arg1)) && int_fits_type_p (arg2, TREE_TYPE (def1_arg1))) { gimple newop; |