Fix pr78725
authorMichael Matz <matz@suse.de>
Tue, 13 Dec 2016 14:14:41 +0000 (14:14 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Tue, 13 Dec 2016 14:14:41 +0000 (14:14 +0000)
commit9042295c44dad698b9f9758c79185879511e8dee
tree9ade386320b09a0689eb2bf5b1cca6c2c902333a
parent5594a028feb4b97996bd93efae74eec9a4295303
Fix pr78725

PR tree-optimization/78725
* tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
at correct use point.

testsuite/
PR tree-optimization/78725
* gcc.dg/pr78725.c: New test.
* gcc.dg/pr78725-2.c: New test.

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