diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-13 12:43:58 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-13 12:43:58 +0000 |
commit | 024fee2c369096e6fe6cde620243df5843893004 (patch) | |
tree | 68386939ae0852a77af25150e2d0cbfe60672811 /gcc/tree-ssa-sccvn.h | |
parent | 780bedc1ccae5ae85fb99afed8a1ac1cc598121b (diff) | |
download | gcc-024fee2c369096e6fe6cde620243df5843893004.tar.gz |
2012-09-13 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.h (enum vn_kind): New.
(vn_get_stmt_kind): Likewise.
* tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
ADDR_EXPR handling.
(visit_use): Use it.
* tree-ssa-pre.c (compute_avail): Likewise, simplify further.
* gcc.dg/tree-ssa/ssa-fre-37.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191253 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.h')
-rw-r--r-- | gcc/tree-ssa-sccvn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-sccvn.h b/gcc/tree-ssa-sccvn.h index 6109463ffa9..956bde22da1 100644 --- a/gcc/tree-ssa-sccvn.h +++ b/gcc/tree-ssa-sccvn.h @@ -121,6 +121,9 @@ typedef struct vn_constant_s tree constant; } *vn_constant_t; +enum vn_kind { VN_NONE, VN_CONSTANT, VN_NARY, VN_REFERENCE, VN_PHI }; +enum vn_kind vn_get_stmt_kind (gimple); + /* Hash the constant CONSTANT with distinguishing type incompatible constants in the types_compatible_p sense. */ |