]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-vrp.c (set_value_range): Do not allocate equiv bitmap if it is not about to...
authorRichard Guenther <rguenther@suse.de>
Tue, 1 May 2007 09:32:34 +0000 (09:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 1 May 2007 09:32:34 +0000 (09:32 +0000)
commitf5052e291a2fdb6eb5c9a968b9a1a68a12aa5866
tree914b1022265dcfffca36896f0385911af5e5f816
parent42b5a16d408d1c619a3bc1c21fcc08ceaeab7534
tree-vrp.c (set_value_range): Do not allocate equiv bitmap if it is not about to be set.

2007-05-01  Richard Guenther  <rguenther@suse.de>

* tree-vrp.c (set_value_range): Do not allocate equiv bitmap
if it is not about to be set.
(get_value_range): Do not pre-allocate equiv bitmap.
(update_value_range): No need to clear equiv field.
(add_equivalence): Change prototype to get bitmap pointer.
Allocate bitmap here if it is not already.
(extract_range_from_assert): Do not allocate bitmap here.
Update callers to add_equivalence.
(extract_range_from_ssa_name): Likewise.
(get_vr_for_comparison): New static helper.
(compare_name_with_value): Handle NULL equiv bitmap by
peeling the first iteration of the comparison loop.
Use get_vr_for_comparison.
(compare_names): Handle NULL equiv bitmaps by using fake
ones.  Use get_vr_for_comparison.

From-SVN: r124321
gcc/ChangeLog
gcc/tree-vrp.c