]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/34176 (SCCVN breaks gettext)
authorRichard Guenther <rguenther@suse.de>
Fri, 23 Nov 2007 14:28:59 +0000 (14:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 23 Nov 2007 14:28:59 +0000 (14:28 +0000)
commit27fa4044f10f2a28e3e33b8b126462276f8fdc4f
tree48a10a4d1d5afd593e94941b3bf4da1a06912d68
parentbdcfbbfccba6c7f843908b7b5d1bef1acd23ccbc
re PR tree-optimization/34176 (SCCVN breaks gettext)

2007-11-23  Richard Guenther  <rguenther@suse.de>
Michael Matz  <matz@suse.de>

PR tree-optimization/34176
* alloc-pool.h (empty_alloc_pool): Declare.
* alloc-pool.c (empty_alloc_pool): New function.
* tree-ssa-sccvn.c (vn_reference_lookup): Also lookup from the
valid table if a lookup from the optimistic table failed.
(vn_unary_op_lookup): Likewise.
(vn_binary_op_lookup): Likewise.
(vn_phi_lookup): Likewise.
(process_scc): Clear optimistic tables before every iteration.

* gcc.c-torture/execute/pr34176.c: New testcase.

Co-Authored-By: Michael Matz <matz@suse.de>
From-SVN: r130379
gcc/ChangeLog
gcc/alloc-pool.c
gcc/alloc-pool.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr34176.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c