This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Remove ending s_endpgm from non-void functions
ClosedPublic

Authored by mareko on Jan 9 2016, 3:27 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mareko updated this revision to Diff 44413.Jan 9 2016, 3:27 PM
mareko retitled this revision from to AMDGPU/SI: Remove ending s_endpgm from non-void functions.
mareko updated this object.
mareko added reviewers: tstellarAMD, arsenm.
tstellarAMD accepted this revision.Jan 11 2016, 12:46 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jan 11 2016, 12:46 PM
arsenm edited edge metadata.Jan 11 2016, 2:13 PM

Shouldn't this just not be emitting in the first place?

Shouldn't this just not be emitting in the first place?

RET_FLAG is translated to S_ENDPGM. The answer to your question is the same as the answer to this: Is it possible to have RET_FLAG that is translated to 0 instructions (some kind of glue), yet those 0 instructions have an arbitrary number of (ret) operands?

This revision was automatically updated to reflect the committed changes.