re PR tree-optimization/89710 (ICE in dyn_cast<gcond*, gimple>(gimple*) / should_dupl...
authorRichard Biener <rguenther@suse.de>
Thu, 14 Mar 2019 11:07:41 +0000 (11:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 14 Mar 2019 11:07:41 +0000 (11:07 +0000)
commitdf6d3ac9aa35d4d9cd23bc70e961490c19e2477d
tree846613006cd671c38f2d4ebf47e4ba24543a3186
parentb81547179688b601af97fc2185489dbea1cd86b2
re PR tree-optimization/89710 (ICE in dyn_cast<gcond*, gimple>(gimple*) / should_duplicate_loop_header_p)

2019-03-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89710
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
safe_dyn_cast.

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

From-SVN: r269679
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr89710.c [new file with mode: 0644]
gcc/tree-ssa-loop-ch.c