tree-optimization/97199 - fix virtual operand update in if-conversion
authorRichard Biener <rguenther@suse.de>
Fri, 25 Sep 2020 11:08:48 +0000 (13:08 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Sep 2020 11:11:53 +0000 (13:11 +0200)
commit4dcc7f03b54087638e084ac69d40d7507fe83bd8
tree9887a0cbbf9948f9767ed49f93e505fbd81e6ae1
parent8c775bf447e190024fa08c55e38db94dd013a393
tree-optimization/97199 - fix virtual operand update in if-conversion

This fixes a corner case with virtual operand update in if-conversion
by re-organizing the code to remove edges only after the last point
we need virtual PHI operands to be available.

2020-09-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97199
* tree-if-conv.c (combine_blocks): Remove edges only
after looking at virtual PHI args.
gcc/tree-if-conv.c