[llvm] r332856 - AMDGPU/GlobalISel: Address post-commit review comments for r332379
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon May 21 10:49:31 PDT 2018
Author: tstellar
Date: Mon May 21 10:49:31 2018
New Revision: 332856
URL: http://llvm.org/viewvc/llvm-project?rev=332856&view=rev
Log:
AMDGPU/GlobalISel: Address post-commit review comments for r332379
MCRegisterInfo::getPhysRegSize() will be deprecated.
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp?rev=332856&r1=332855&r2=332856&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp Mon May 21 10:49:31 2018
@@ -224,7 +224,7 @@ bool AMDGPUInstructionSelector::selectG_
} else {
const TargetRegisterClass *RC = TRI.getRegClassForReg(MRI, DstReg);
IsSgpr = TRI.isSGPRClass(RC);
- Size = RC->MC->getPhysRegSize() * 8;
+ Size = TRI.getRegSizeInBits(*RC);
}
if (Size != 32 && Size != 64)
More information about the llvm-commits
mailing list