diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-27 20:29:15 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2012-11-27 20:29:15 +0000 |
commit | 92390dd17128b1e4f4c456e5185566bbe5ee35a4 (patch) | |
tree | 436c983a432ffc86e3f81d2f07a71c8635c1bf4b /gcc/alias.c | |
parent | 18e1fd7565cd40baf448858cb069d25b99338a08 (diff) | |
download | gcc-92390dd17128b1e4f4c456e5185566bbe5ee35a4.zip gcc-92390dd17128b1e4f4c456e5185566bbe5ee35a4.tar.gz gcc-92390dd17128b1e4f4c456e5185566bbe5ee35a4.tar.bz2 |
re PR rtl-optimization/55489 (insane PRE memory usage with PIE (translate.i))
2012-11-27 Paolo Bonzini <pbonzini@redhat.com>
PR rtl-optimization/55489
* gcse.c (compute_transp): Precompute a canonical version
of XEXP (x, 0), and pass it to canon_true_dependence.
* alias.c (init_alias_analysis): Fix allocation of reg_known_value.
From-SVN: r193868
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 15fd7f3..130c1a4 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2808,7 +2808,7 @@ init_alias_analysis (void) timevar_push (TV_ALIAS_ANALYSIS); - vec_alloc (reg_known_value, maxreg - FIRST_PSEUDO_REGISTER); + vec_safe_grow_cleared (reg_known_value, maxreg - FIRST_PSEUDO_REGISTER); reg_known_equiv_p = sbitmap_alloc (maxreg - FIRST_PSEUDO_REGISTER); /* If we have memory allocated from the previous run, use it. */ |