Before match-and-simplify was used in phiot, the location of the
new stamtents were all of that of the conditional, this adds that
back as I did not realize gimple_simplify didn't do that for you.
OK? Bootstrapped and tested on x86_64 with no regressions.
gcc/ChangeLog:
* tree-ssa-phiopt.c (gimple_simplify_phiopt): Annotate the
new sequence with the location of the conditional statement.
result = maybe_push_res_to_seq (&op, &seq1);
if (result)
{
+ if (loc != UNKNOWN_LOCATION)
+ annotate_all_with_location (seq1, loc);
gimple_seq_add_seq_without_update (seq, seq1);
return result;
}
result = maybe_push_res_to_seq (&op1, &seq1);
if (result)
{
+ if (loc != UNKNOWN_LOCATION)
+ annotate_all_with_location (seq1, loc);
gimple_seq_add_seq_without_update (seq, seq1);
return result;
}