aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-07-28 11:27:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-07-28 11:27:45 +0000
commit92e29a5e86c8adc88ee17a483d7284d7bb9e090c (patch)
tree7c89972072bd6357aef834097b5e62e1378d814d /gcc/fold-const.c
parentc9b39a4955f56fe609ef54784f7bf48c4cba6b1a (diff)
downloadgcc-92e29a5e86c8adc88ee17a483d7284d7bb9e090c.zip
gcc-92e29a5e86c8adc88ee17a483d7284d7bb9e090c.tar.gz
gcc-92e29a5e86c8adc88ee17a483d7284d7bb9e090c.tar.bz2
re PR middle-end/81502 (In some cases the data is moved to memory unnecessarily [partial regression])
2017-07-28 Richard Biener <rguenther@suse.de> PR tree-optimization/81502 * match.pd: Add pattern combining BIT_INSERT_EXPR with BIT_FIELD_REF. * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF size/pos operands. (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos. * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype for BIT_FIELD_REF args. * fold-const.c (make_bit_field_ref): Likewise. * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise. * gcc.target/i386/pr81502.c: New testcase. From-SVN: r250659
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index d40b9aa..ae94659 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -3936,7 +3936,7 @@ make_bit_field_ref (location_t loc, tree inner, tree orig_inner, tree type,
bftype = build_nonstandard_integer_type (bitsize, 0);
result = build3_loc (loc, BIT_FIELD_REF, bftype, inner,
- size_int (bitsize), bitsize_int (bitpos));
+ bitsize_int (bitsize), bitsize_int (bitpos));
REF_REVERSE_STORAGE_ORDER (result) = reversep;
if (bftype != type)