Fix ICE due to invalid jump threading request
authorJeff Law <law@torsion.usersys.redhat.com>
Fri, 24 Jan 2020 22:44:10 +0000 (17:44 -0500)
committerJeff Law <law@torsion.usersys.redhat.com>
Fri, 24 Jan 2020 22:51:19 +0000 (17:51 -0500)
commit98181563dc4c65c9d23eaa99134e18876b6ec671
tree86a915598733f1829455cbed2e49ef61266f5a00
parent55dd44535d2e4e5703c0103c26e7c51ab8c502c4
Fix ICE due to invalid jump threading request

PR tree-optimization/92788
* tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
not EDGE_ABNORMAL.

PR tree-optimization/92788
* g++.dg/pr92788.C: New test.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr92788.C [new file with mode: 0644]
gcc/tree-ssa-threadedge.c