https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128638

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
So this is partial PRE at work which might not be TBAA safe as it "speculates"
loads but at the speculated points we do no longer know we speculated them and
thus TBAA applies.

What actually happens is that the ref-all read isn't ANTIC_IN (huh), so
the PA_OUT of the intermediate store block has just the int load, likely
because we value-numbered both loads the same (that's PR128637).

That said, if we'd have both expressions (an old, or new again?, issue of
EXP_GEN compute), partial ANTIC compute would need to prune a value
when _any_ of its expressions gets pruned via prune_clobbered_mems.

I'll note that while regular ANTIC compute intersects values we actually
union expressions (sic), but in this light that's a bad idea so the same
logic would apply to prune_clobbered_mems here I think.

But we're not getting EXP_GEN correct which is a long-standing issue.

So two pieces to fix, a) EXP_GEN, b) prune_clobbered_mems.

Reply via email to