[PATCH 1/2] R600/SI: Replace TRI->getRegClass(Reg) with TRI->getPhysRegClass(Reg)

Matt Arsenault Matthew.Arsenault at amd.com
Tue Apr 14 10:45:52 PDT 2015


On 04/14/2015 09:32 AM, Tom Stellard wrote:
> diff --git a/lib/Target/R600/SIRegisterInfo.cpp b/lib/Target/R600/SIRegisterInfo.cpp
> index 13a8974..3529cd0 100644
> --- a/lib/Target/R600/SIRegisterInfo.cpp
> +++ b/lib/Target/R600/SIRegisterInfo.cpp
> @@ -347,6 +347,7 @@ const TargetRegisterClass *SIRegisterInfo::getPhysRegClass(unsigned Reg) const {
>     assert(!TargetRegisterInfo::isVirtualRegister(Reg));
>   
>     static const TargetRegisterClass *BaseClasses[] = {
> +    &AMDGPU::M0RegRegClass,
>       &AMDGPU::VGPR_32RegClass,
>       &AMDGPU::SReg_32RegClass,
>       &AMDGPU::VReg_64RegClass,
> -- 2.0.4
This part looks like a separate patch.

Otherwise LGTM



More information about the llvm-commits mailing list