This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix dropping mem operands when moving to VALU
ClosedPublic

Authored by arsenm on Aug 25 2015, 2:23 AM.

Details

Reviewers
tstellarAMD
Summary

Without a memory operand, mayLoad or mayStore instructions
are treated as hasUnorderedMemRef, which results in much worse
scheduling.

We really should have a verifier check that any
non-side effecting mayLoad or mayStore has a memory operand.
There are a few instructions (interp and images) which I'm
not sure what / where to add these.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 33056.Aug 25 2015, 2:23 AM
arsenm retitled this revision from to AMDGPU: Fix dropping mem operands when moving to VALU.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm updated this revision to Diff 33092.Aug 25 2015, 11:17 AM

Add test

tstellarAMD accepted this revision.Aug 28 2015, 7:27 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 28 2015, 7:27 PM
arsenm closed this revision.Aug 28 2015, 11:50 PM

r246356