This is an archive of the discontinued LLVM Phabricator instance.

DAG: Stop dropping invariant/dereferencable
ClosedPublic

Authored by arsenm on Jun 4 2018, 12:45 PM.

Details

Summary

When legalizing illegal FP load results, this was
for some reason dropping the invariant and dereferencable
memory flags. There doesn't seem to be any reason for this,
and the equivalent isn't done for integer loads.

Fixes an issue in a future AMDGPU commit where some identical
loads fail to merge because one of the loads ends up
dropping the flags.

Diff Detail

Event Timeline

arsenm created this revision.Jun 4 2018, 12:45 PM
hfinkel accepted this revision.Jun 4 2018, 12:56 PM
hfinkel added a subscriber: hfinkel.

That's odd; I can't think of any reason why we'd drop the flags in this case. LGTM.

This revision is now accepted and ready to land.Jun 4 2018, 12:56 PM
jlebar accepted this revision.Jun 4 2018, 1:45 PM

I can't think of any reason why we'd drop the flags in this case.

Me either.

arsenm closed this revision.Jun 5 2018, 7:56 AM

r334020