aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-18 15:51:22 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-07-18 13:51:22 +0000
commit35896b18ecb8ac88c4c21b2b21c01e9d435a5ebe (patch)
treec9c4fde1a04fb3b50895d6eadd9ea304c09349a7 /gcc/cfgloopmanip.c
parent33e9feb53082ee79d5f4321bcedf025f1bbd691d (diff)
downloadgcc-35896b18ecb8ac88c4c21b2b21c01e9d435a5ebe.zip
gcc-35896b18ecb8ac88c4c21b2b21c01e9d435a5ebe.tar.gz
gcc-35896b18ecb8ac88c4c21b2b21c01e9d435a5ebe.tar.bz2
re PR tree-optimization/81463 (ICE in scale_loop_profile at gcc/cfgloopmanip.c:603)
PR middle-end/81463 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency again. From-SVN: r250311
Diffstat (limited to 'gcc/cfgloopmanip.c')
-rw-r--r--gcc/cfgloopmanip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index f62c829..fd335c3 100644
--- a/gcc/cfgloopmanip.c
+++ b/gcc/cfgloopmanip.c
@@ -591,7 +591,7 @@ scale_loop_profile (struct loop *loop, profile_probability p,
determined = true;
}
}
- if (!determined)
+ if (!determined && loop->header->frequency)
{
int freq_in = 0;