From ab3429c2b4e52a60b3ace37e7fd3ffec3ddae3cd Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 18 May 2016 15:19:50 +0000 Subject: AMDGPU: Fix assert on ttmp registers Use register class that does not include them when looking for unallocated registers. This is hit by the udiv v8i64 test in the opencl integer conformance test, and takes a few seconds to compile in a debug build so no test included. llvm-svn: 269938 --- llvm/lib/Target/AMDGPU/SIFrameLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/AMDGPU') diff --git a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp index d068b8d27cc..5c219c8e740 100644 --- a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp @@ -26,8 +26,8 @@ static bool hasOnlySGPRSpills(const SIMachineFunctionInfo *FuncInfo, } static ArrayRef getAllSGPR128() { - return makeArrayRef(AMDGPU::SReg_128RegClass.begin(), - AMDGPU::SReg_128RegClass.getNumRegs()); + return makeArrayRef(AMDGPU::SGPR_128RegClass.begin(), + AMDGPU::SGPR_128RegClass.getNumRegs()); } static ArrayRef getAllSGPRs() { -- cgit v1.2.3