summaryrefslogtreecommitdiff
path: root/gcc/tree-vn.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-20 10:03:27 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-20 10:03:27 +0000
commitfbeb30a9e1eb6527d802b94bb3d34d646981efff (patch)
tree219b4745e3d4bd267487f2ab7694a7b7d012f750 /gcc/tree-vn.c
parent29b1845fd01ed2265a10d4edc120d99cd65cff76 (diff)
downloadgcc-fbeb30a9e1eb6527d802b94bb3d34d646981efff.tar.gz
2008-05-20 Richard Guenther <rguenther@suse.de>
* tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle. * gcc.c-torture/execute/20080519-1.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vn.c')
-rw-r--r--gcc/tree-vn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-vn.c b/gcc/tree-vn.c
index 40efea6f8f7..1d2e5a55de0 100644
--- a/gcc/tree-vn.c
+++ b/gcc/tree-vn.c
@@ -306,7 +306,9 @@ vn_lookup_with_vuses (tree expr, VEC (tree, gc) *vuses)
if (is_gimple_min_invariant (expr) || TREE_CODE (expr) == FIELD_DECL)
return expr;
- return vn_reference_lookup (expr, vuses, true);
+ /* We may not walk the use-def chains here as the alias oracle cannot
+ properly deal with VALUE_HANDLE tree nodes we feed it here. */
+ return vn_reference_lookup (expr, vuses, false);
}
static tree