This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Don't look for DS merge candidates with one use address
ClosedPublic

Authored by arsenm on Aug 28 2017, 9:32 PM.

Details

Reviewers
rampitec
Summary

The merge is only possible if the base address register is the
same for the two instructions. If there is only the one use,
there's no point in doing an expensive forward scan checking
for memory interference looking for a merge candidate.

This gives a signficant improvement in one extreme testcase.
The code to do the scan is still algorithmically terrible,
so this is still the slowest pass in that example.

Diff Detail

Event Timeline

arsenm created this revision.Aug 28 2017, 9:32 PM
This revision is now accepted and ready to land.Aug 29 2017, 12:18 PM
arsenm closed this revision.Aug 29 2017, 8:27 PM

r312096