Deleted Added
full compact
tree-ssa-ccp.c (237021) tree-ssa-ccp.c (237406)
1/* Conditional constant propagation pass for the GNU compiler.
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
3 Free Software Foundation, Inc.
4 Adapted from original RTL SSA-CCP by Daniel Berlin <dberlin@dberlin.org>
5 Adapted to GIMPLE trees by Diego Novillo <dnovillo@redhat.com>
6
7This file is part of GCC.
8

--- 1607 unchanged lines hidden (view full) ---

1616 elt_offset = fold_convert (TYPE_DOMAIN (array_type), elt_offset);
1617 }
1618
1619 if (!integer_zerop (min_idx))
1620 idx = int_const_binop (PLUS_EXPR, idx, min_idx, 0);
1621 if (!integer_zerop (elt_offset))
1622 idx = int_const_binop (PLUS_EXPR, idx, elt_offset, 0);
1623
1/* Conditional constant propagation pass for the GNU compiler.
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
3 Free Software Foundation, Inc.
4 Adapted from original RTL SSA-CCP by Daniel Berlin <dberlin@dberlin.org>
5 Adapted to GIMPLE trees by Diego Novillo <dnovillo@redhat.com>
6
7This file is part of GCC.
8

--- 1607 unchanged lines hidden (view full) ---

1616 elt_offset = fold_convert (TYPE_DOMAIN (array_type), elt_offset);
1617 }
1618
1619 if (!integer_zerop (min_idx))
1620 idx = int_const_binop (PLUS_EXPR, idx, min_idx, 0);
1621 if (!integer_zerop (elt_offset))
1622 idx = int_const_binop (PLUS_EXPR, idx, elt_offset, 0);
1623
1624 return build4 (ARRAY_REF, orig_type, base, idx, min_idx,
1625 size_int (tree_low_cst (elt_size, 1)
1626 / (TYPE_ALIGN_UNIT (elt_type))));
1624 return build4 (ARRAY_REF, orig_type, base, idx, NULL_TREE, NULL_TREE);
1627}
1628
1629
1630/* A subroutine of fold_stmt_r. Attempts to fold *(S+O) to S.X.
1631 BASE is a record type. OFFSET is a byte displacement. ORIG_TYPE
1632 is the desired result type. */
1633/* ??? This doesn't handle class inheritance. */
1634

--- 998 unchanged lines hidden ---
1625}
1626
1627
1628/* A subroutine of fold_stmt_r. Attempts to fold *(S+O) to S.X.
1629 BASE is a record type. OFFSET is a byte displacement. ORIG_TYPE
1630 is the desired result type. */
1631/* ??? This doesn't handle class inheritance. */
1632

--- 998 unchanged lines hidden ---