diff options
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 53e680c383a..589058fdc2c 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1437,7 +1437,7 @@ try_to_simplify (tree stmt, tree rhs) if (TREE_READONLY (rhs) && TREE_STATIC (rhs) && DECL_INITIAL (rhs) - && is_gimple_min_invariant (DECL_INITIAL (rhs))) + && valid_gimple_expression_p (DECL_INITIAL (rhs))) return DECL_INITIAL (rhs); /* Fallthrough. */ |