This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add IntrWillReturn to three intrinsics
ClosedPublic

Authored by sebastian-ne on Jan 26 2021, 4:13 AM.

Details

Summary

None of these can terminate a wave or lane.
With these, all intrinsic are IntrWillReturn except those that change
exec or can terminate the wave.

Not marking intrinsics as WillReturn may prevent optimizations in the
future: https://lists.llvm.org/pipermail/llvm-dev/2021-January/148047.html

int_r600_kill is marked as IntrWillReturn, is that correct?

Diff Detail

Event Timeline

sebastian-ne created this revision.Jan 26 2021, 4:13 AM
sebastian-ne requested review of this revision.Jan 26 2021, 4:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2021, 4:13 AM
arsenm accepted this revision.Jan 26 2021, 6:15 AM

We should probably switch to using the new default attribute list feature, but I guess that's a separate change

This revision is now accepted and ready to land.Jan 26 2021, 6:15 AM
This revision was automatically updated to reflect the committed changes.