AMDGPU/SI: Simplify moveSMRDToVALU()
authorTom Stellard <thomas.stellard@amd.com>
Thu, 30 Jul 2015 16:20:42 +0000 (16:20 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 30 Jul 2015 16:20:42 +0000 (16:20 +0000)
commita495784ea07d34ec04f165340eba5e57ffcfaa44
tree828942c9a9b9c4b75954b5d7c45a3c97388c9f49
parenta3a8dc4c30dbbd8d53d0d1c1c083bb131e421c7e
AMDGPU/SI: Simplify moveSMRDToVALU()

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.

Reviewers: arsenm

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11601

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243652 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp