diff options
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivcanon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index e278c55..5c2f6af 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -442,7 +442,7 @@ empty_loop_p (struct loop *loop) { gimple stmt = gsi_stmt (gsi); - if (!ZERO_SSA_OPERANDS (stmt, SSA_OP_VIRTUAL_DEFS) + if (gimple_vdef (stmt) || gimple_has_volatile_ops (stmt)) { free (body); |