https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79267
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Feb 15 07:01:14 2017 New Revision: 245466 URL: https://gcc.gnu.org/viewcvs?rev=245466&root=gcc&view=rev Log: Backported from mainline 2017-01-31 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/79267 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls if should_remove_lhs_p is true. * g++.dg/opt/pr79267.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr79267.C Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/value-prof.c