stmt_to_move_alt))
return false;
+ /* Do not make conditional undefs unconditional. */
+ if ((TREE_CODE (arg0) == SSA_NAME
+ && ssa_name_maybe_undef_p (arg0))
+ || (TREE_CODE (arg1) == SSA_NAME
+ && ssa_name_maybe_undef_p (arg1)))
+ return false;
+
/* At this point we know we have a GIMPLE_COND with two successors.
One successor is BB, the other successor is an empty block which
falls through into BB.
arg_false = arg0;
}
- /* Do not make conditional undefs unconditional. */
- if ((TREE_CODE (arg_true) == SSA_NAME
- && ssa_name_maybe_undef_p (arg_true))
- || (TREE_CODE (arg_false) == SSA_NAME
- && ssa_name_maybe_undef_p (arg_false)))
- return false;
-
tree type = TREE_TYPE (gimple_phi_result (phi));
{
auto_flow_sensitive s1(stmt_to_move);