OSDN Git Service

2007-11-23 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Nov 2007 14:28:59 +0000 (14:28 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Nov 2007 14:28:59 +0000 (14:28 +0000)
commit48694fc0bcb705daf70c22d5e3d836ee90b0685a
tree48a10a4d1d5afd593e94941b3bf4da1a06912d68
parentd383205a7b5f1873e1a37b64beef9d385543f93c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130379 138bc75d-0d04-0410-961f-82ee72b054a4
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