summaryrefslogtreecommitdiff
path: root/gcc/tree-vn.c
diff options
context:
space:
mode:
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