This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix multi-use shl/add combine
ClosedPublic

Authored by arsenm on Nov 6 2017, 2:27 AM.

Details

Reviewers
rampitec
Summary

This was using a custom function that didn't handle the
addressing modes properly for private. Use
isLegalAddressingMode to avoid duplicating this.

Additionally, skip the combine if there is only one use
since the standard combine will handle it.

Diff Detail

Event Timeline

arsenm created this revision.Nov 6 2017, 2:27 AM
This revision is now accepted and ready to land.Nov 6 2017, 10:33 AM
arsenm closed this revision.Nov 12 2017, 9:12 PM

r318013