diff options
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 69f1e1f..6e298d3 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -1439,6 +1439,9 @@ is_cond_scalar_reduction (gimple phi, gimple *reduc, || gimple_has_volatile_ops (stmt)) return false; + if (!flow_bb_inside_loop_p (loop, gimple_bb (stmt))) + return false; + if (!is_predicated (gimple_bb (stmt))) return false; |