re PR tree-optimization/92512 (ICE in gimple_op, at gimple.h:2436)
authorRichard Biener <rguenther@suse.de>
Fri, 15 Nov 2019 13:52:09 +0000 (13:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 15 Nov 2019 13:52:09 +0000 (13:52 +0000)
commitb9f71c51cd578c6ab6ad2986edb80ba48aa477bc
treecf974b1e2f625191918c751588797b77128c1090
parentb6d53324092ee2b15c4a34fb55f2556863223d86
re PR tree-optimization/92512 (ICE in gimple_op, at gimple.h:2436)

2019-11-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92512
* tree-vect-loop.c (check_reduction_path): Fix operand index
computability check.  Add check for second use in COND_EXPRs.

* gcc.dg/torture/pr92512.c: New testcase.

From-SVN: r278293
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr92512.c [new file with mode: 0644]
gcc/tree-vect-loop.c