This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Directly select 16-bank LDS case of llvm.amdgcn.interp.p1.f16
ClosedPublic

Authored by arsenm on Jan 13 2020, 5:34 AM.

Details

Summary

Manually select this is as a tablegen workraound. Both SelectionDAG
and GlobalISel end up misplacing the copy to m0 when both instructions
in the output need it. Neither considers that both output instructions
depend on m0. I don't know of any other pattern we need to handle this
case, so it's less effort to just workaround this for now.

Diff Detail

Event Timeline

arsenm created this revision.Jan 13 2020, 5:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2020, 5:34 AM

Is there a test case?

Is there a test case?

This is already covered by the existing test cases, and just moves the handling. The GlobalISel version adds new tests

This revision is now accepted and ready to land.Jan 29 2020, 1:09 AM