From d8b2da11360419a9f1d569468a9b2a8ca3dace20 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 29 Apr 2013 22:23:58 +0000 Subject: R600: Use correct CF_END instruction on Northern Island GPUs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180735 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/R600ControlFlowFinalizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Target') diff --git a/lib/Target/R600/R600ControlFlowFinalizer.cpp b/lib/Target/R600/R600ControlFlowFinalizer.cpp index 9271b39..94736ad 100644 --- a/lib/Target/R600/R600ControlFlowFinalizer.cpp +++ b/lib/Target/R600/R600ControlFlowFinalizer.cpp @@ -123,7 +123,7 @@ private: Opcode = isEg ? AMDGPU::POP_EG : AMDGPU::POP_R600; break; case CF_END: - if (ST.device()->getGeneration() == AMDGPUDeviceInfo::HD6XXX) { + if (ST.device()->getDeviceFlag() == OCL_DEVICE_CAYMAN) { Opcode = AMDGPU::CF_END_CM; break; } -- cgit v1.1