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)
commit4229aa942d98cace46c38550d9dc83b7e7ec09dc
treee381160927d04c856538c295b1f7468ab0574ac8
parent9d74076065279abbc8c1beaa6510ba620cee9cd7
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

llvm-svn: 243652
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp