aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@pierdol.cobaltmicro.com>1998-07-22 16:14:27 +0000
committerDavid S. Miller <davem@gcc.gnu.org>1998-07-22 09:14:27 -0700
commit60f25009e32cf0269d1344ee2683bce092d31c5f (patch)
treec28a34c2b00ba4301b347f654a797f827e067756 /gcc/profile.c
parent1d3337fc41728b59856f33b9945b4c55e81cf9f8 (diff)
downloadgcc-60f25009e32cf0269d1344ee2683bce092d31c5f.zip
gcc-60f25009e32cf0269d1344ee2683bce092d31c5f.tar.gz
gcc-60f25009e32cf0269d1344ee2683bce092d31c5f.tar.bz2
profile.c (branch_prob): Call allocate_reg_info after outputting profile rtl in instrument_arcs.
* profile.c (branch_prob): Call allocate_reg_info after outputting profile rtl in instrument_arcs. From-SVN: r21340
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 060ecfc..b06f91b 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -957,7 +957,10 @@ branch_prob (f, dump_file)
/* For each arc not on the spanning tree, add counting code as rtl. */
if (profile_arc_flag)
- instrument_arcs (f, num_blocks, dump_file);
+ {
+ instrument_arcs (f, num_blocks, dump_file);
+ allocate_reg_info (max_reg_num (), FALSE, FALSE);
+ }
/* Execute the rest only if doing branch probabilities. */
if (! flag_branch_probabilities)