This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Use isMetaInstruction for instruction size
ClosedPublic

Authored by sebastian-ne on Jul 15 2021, 1:22 AM.

Details

Summary

Meta instructions have a size of 0. Use isMetaInstruction instead of
listing them explicitely.

Diff Detail

Event Timeline

sebastian-ne created this revision.Jul 15 2021, 1:22 AM
sebastian-ne requested review of this revision.Jul 15 2021, 1:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2021, 1:22 AM
foad accepted this revision.Jul 15 2021, 2:52 AM

Looks good.

Typo in summary "explicitly".

Could put the isMetaInstruction check inside the default case of the switch, to save a nanosecond in the common case.

This revision is now accepted and ready to land.Jul 15 2021, 2:52 AM
This revision was landed with ongoing or failed builds.Jul 15 2021, 3:30 AM
This revision was automatically updated to reflect the committed changes.