re PR tree-optimization/91162 (ICE: tree check: expected class 'type', have 'exceptio...
authorRichard Biener <rguenther@suse.de>
Mon, 15 Jul 2019 12:48:47 +0000 (12:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 15 Jul 2019 12:48:47 +0000 (12:48 +0000)
commit5e79b147663c2f24079f3292e25cd66693da8cf5
treee5028f68e7dc374635a75bfb45a2d367fbac4d8b
parent6c2833e74e4e64a71bafaf6e20e65506bbce5a5c
re PR tree-optimization/91162 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:86 (error: invalid 'PHI' argument))

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

PR middle-end/91162
* tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
node make sure to replace all uses with something valid.

* gcc.dg/autopar/pr91162.c: New testcase.

From-SVN: r273492
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr91162.c [new file with mode: 0644]
gcc/tree-cfg.c