commit | 238cf114de16518c6569f0cdd2c4d6211ac98a74 | [log] [tgz] |
---|---|---|
author | Richard Biener <rguenther@suse.de> | Mon Nov 28 09:19:33 2022 +0100 |
committer | Richard Biener <rguenther@suse.de> | Mon Nov 28 10:04:42 2022 +0100 |
tree | f2d074e9a906b6019c3e3f9649ae8782ea172f09 | |
parent | 0976b012d89e3d819d83cdaf0dab05925b3eb3a0 [diff] |
tree-optimization/107876 - unswitching of switch The following shows a missed update of dominators when unswitching removes unreachable edges from switch stmts it unswitches. Fixed by wiping dominator info in that case. PR tree-optimization/107876 * tree-ssa-loop-unswitch.cc (clean_up_after_unswitching): Wipe dominator info if we removed an edge. * g++.dg/tree-ssa/pr107876.C: New testcase.