re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointer) operand...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 17 Oct 2016 22:08:56 +0000 (22:08 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 17 Oct 2016 22:08:56 +0000 (22:08 +0000)
commita929f2662ef33c06ad5b41f2a3df0c0833bbc405
tree34319a35592833a44e76589fd700c44a0534b9e3
parent4acf205523e33923a55d542aca44c2670e970a3a
re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointer) operands to plus/minus)

[gcc]

2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
Don't allow a MINUS_EXPR for pointer arithmetic for either known
or unknown strides.
(record_increment): Increments of -1 for unknown strides just use
a multiply initializer like other negative values.
(analyze_increments): Remove stopgap solution for -1 increment
applied to pointer arithmetic.

[gcc/testsuite]

2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gcc.dg/torture/pr77916.c: New.

From-SVN: r241281
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77916.c [new file with mode: 0644]