This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix DAG divergence for implicit function arguments
ClosedPublic

Authored by arsenm on May 13 2020, 12:25 PM.

Details

Reviewers
rampitec
alex-t
Summary

This should be directly implied from the register class, and there's
no need to special case live ins here. This was getting the wrong
answer for the queue ptr argument in callable functions, since it's
not an explicit IR argument and is always uniform.

Fixes not using scalar loads for the aperture in addrspacecast
lowering, and any other places that use implicit SGPR arguments.

Diff Detail

Event Timeline

arsenm created this revision.May 13 2020, 12:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2020, 12:25 PM
alex-t accepted this revision.May 18 2020, 11:33 AM

LGTM

This revision is now accepted and ready to land.May 18 2020, 11:33 AM