diff options
Diffstat (limited to 'gcc/tree-ssa-sink.c')
-rw-r--r-- | gcc/tree-ssa-sink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index a190a22..d0c550d 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -140,7 +140,7 @@ is_hidden_global_store (gimple stmt) /* Check virtual definitions. If we get here, the only virtual definitions we should see are those generated by assignment or call statements. */ - if (!ZERO_SSA_OPERANDS (stmt, SSA_OP_VIRTUAL_DEFS)) + if (gimple_vdef (stmt)) { tree lhs; @@ -191,7 +191,7 @@ is_hidden_global_store (gimple stmt) } else if (INDIRECT_REF_P (lhs)) - return may_point_to_global_var (TREE_OPERAND (lhs, 0)); + return ptr_deref_may_alias_global_p (TREE_OPERAND (lhs, 0)); else gcc_unreachable (); } @@ -317,7 +317,7 @@ statement_sink_location (gimple stmt, basic_block frombb, || code == FILTER_EXPR || is_hidden_global_store (stmt) || gimple_has_volatile_ops (stmt) - || !ZERO_SSA_OPERANDS (stmt, SSA_OP_VUSE) + || gimple_vuse (stmt) || (cfun->has_local_explicit_reg_vars && TYPE_MODE (TREE_TYPE (gimple_assign_lhs (stmt))) == BLKmode)) return false; |