re PR tree-optimization/79943 (Loop splitting breaks with loops of pointer type)
authorAndrew Haley <aph@redhat.com>
Wed, 8 Mar 2017 11:35:23 +0000 (11:35 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Wed, 8 Mar 2017 11:35:23 +0000 (11:35 +0000)
commitf1a675e486155ebeb0abc90b73aa75d7079d9b58
tree8193f00a0d438ba2efedc392641923b049315a04
parent2ff555ff0e711a1f75b4b7054b50650a6d6770b4
re PR tree-optimization/79943 (Loop splitting breaks with loops of pointer type)

2017-03-08  Andrew Haley  <aph@redhat.com>

PR tree-optimization/79943
* tree-ssa-loop-split.c (compute_new_first_bound): When
calculating the new upper bound, (END-BEG) should be added, not
subtracted.

From-SVN: r245974
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr79943.c [new file with mode: 0644]
gcc/tree-ssa-loop-split.c