re PR middle-end/81502 (In some cases the data is moved to memory unnecessarily ...
authorRichard Biener <rguenther@suse.de>
Fri, 28 Jul 2017 11:27:45 +0000 (11:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 28 Jul 2017 11:27:45 +0000 (11:27 +0000)
commit92e29a5e86c8adc88ee17a483d7284d7bb9e090c
tree7c89972072bd6357aef834097b5e62e1378d814d
parentc9b39a4955f56fe609ef54784f7bf48c4cba6b1a
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
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple-fold.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr81502.c [new file with mode: 0644]
gcc/tree-cfg.c
gcc/tree-vect-stmts.c