This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Simplify moveSMRDToVALU()
ClosedPublic

Authored by • tstellarAMD on Jul 29 2015, 11:26 AM.

Details

Summary

Replace the switch on instruction opcode with a switch on register size.
This way we don't need to update the switch statement when we add new
SMRD variants.

Diff Detail

Repository
rL LLVM

Event Timeline

• tstellarAMD retitled this revision from to AMDGPU/SI: Simplify moveSMRDToVALU().
• tstellarAMD updated this object.
• tstellarAMD added a reviewer: arsenm.
• tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Jul 29 2015, 11:36 AM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 29 2015, 11:36 AM
This revision was automatically updated to reflect the committed changes.