re PR tree-optimization/51719 (ICE: verify_gimple failed: LHS in noreturn call with...
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Jan 2012 09:09:41 +0000 (10:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Jan 2012 09:09:41 +0000 (10:09 +0100)
commita9730200523b035a4bb6db87b93811c170409443
treef7d063113d3bb8352f8c367f218f990fa7fef5eb
parentbe5de7a15852f98586bc6e1b3fbe951f35d72915
re PR tree-optimization/51719 (ICE: verify_gimple failed: LHS in noreturn call with -fpartial-inlining -fprofile-use and exceptions)

PR tree-optimization/51719
* value-prof.c (gimple_ic): When indirect call isn't noreturn,
but direct call is, clear direct call's lhs and don't add fallthrough
edge from dcall_bb to join_bb and PHIs.

* g++.dg/tree-prof/pr51719.C: New test.

From-SVN: r182832
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-prof/pr51719.C [new file with mode: 0644]
gcc/value-prof.c