]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (optimize_bit_field_compare): Remove extra fold call.
authorJames A. Morrison <phython@gcc.gnu.org>
Wed, 17 Aug 2005 03:56:20 +0000 (03:56 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Wed, 17 Aug 2005 03:56:20 +0000 (03:56 +0000)
commitf457cf402e8d2ba9a9ac27c74e4af5f9b6259b1e
treebf56b200973247a5d5406c02f3422ef6f6a55621
parent0cbe2a6862df066e1ba207bbba418b1a5e6bd429
fold-const.c (optimize_bit_field_compare): Remove extra fold call.

2005-08-16  James A. Morrison  <phython@gcc.gnu.org>

        * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
        (try_move_mult_to_index): Call fold_build2 instead of build2.
        (fold_binary): Don't call fold after calls to try_move_mult_to_index.
        * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
        fold_binary_to_constant.
        (infer_loop_bounds_from_undefined): Call fold_build2 instead of
        fold (build.
        * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
        check if A == gcd (A, B).  Remove TYPE argument.
        (analyze_offset) Use fold_build2 instead of fold (build.
        (create_data_ref): Likewise.
        (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.        * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
        then fold.

From-SVN: r103200
gcc/ChangeLog
gcc/fold-const.c
gcc/tree-data-ref.c
gcc/tree-ssa-ccp.c
gcc/tree-ssa-loop-niter.c