PR tree-optimization/79267
commitd4484c47f5572e8b514fdf6943494b006a9405f8
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2017 08:33:36 +0000 (31 08:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2017 08:33:36 +0000 (31 08:33 +0000)
tree4e48957da84e536c6dd21300b0f28f58c8e79ec8
parent0e9ab2f06d6470b72268aecc944e6c626fadad36
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245053 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr79267.C [new file with mode: 0644]
gcc/value-prof.c