diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-30 23:09:13 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-30 21:09:13 +0000 |
commit | 77616c7e1d9051edeab7af8671d32e23528563ba (patch) | |
tree | 351c4617a4379b82e6c47fd543c04898324537db /gcc/tree-inline.c | |
parent | 3d4de231f7215b4b890ccf89135772bd8f3a97db (diff) | |
download | gcc-77616c7e1d9051edeab7af8671d32e23528563ba.zip gcc-77616c7e1d9051edeab7af8671d32e23528563ba.tar.gz gcc-77616c7e1d9051edeab7af8671d32e23528563ba.tar.bz2 |
re PR ipa/81261 (ICE with -fno-guess-branch-probability)
PR ipa/81261
* tree-inline.c (expand_call_inline): Combine profile statuses.
From-SVN: r249856
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 9306c3f..d4e4ef1 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4650,6 +4650,9 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) else id->dst_simt_vars = NULL; + if (profile_status_for_fn (id->src_cfun) == PROFILE_ABSENT) + profile_status_for_fn (dst_cfun) = PROFILE_ABSENT; + /* If the src function contains an IFN_VA_ARG, then so will the dst function after inlining. Likewise for IFN_GOMP_USE_SIMT. */ prop_mask = PROP_gimple_lva | PROP_gimple_lomp_dev; |