tree-optimization/105763 - avoid abnormals with ranger queries
authorRichard Biener <rguenther@suse.de>
Mon, 30 May 2022 11:19:38 +0000 (13:19 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 1 Jun 2022 07:07:37 +0000 (09:07 +0200)
commitae575e93b6f7fb7077940cb7410f899da184ec2d
tree1916a4b8ae73c39d38f88173fb0265949d25f288
parent820ead4519c266c83b4e3d11484a66d6691bc441
tree-optimization/105763 - avoid abnormals with ranger queries

In unswitching we use ranger to simplify switch statements so we
have to avoid doing anything for abnormals.

2022-05-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105763
* tree-ssa-loop-unswitch.cc (find_unswitching_predicates_for_bb):
Check gimple_range_ssa_p.

* gcc.dg/pr105763.c: New testcase.
gcc/testsuite/gcc.dg/pr105763.c [new file with mode: 0644]
gcc/tree-ssa-loop-unswitch.cc