[libclc] r279359 - amdgpu: Fix default case value for get_local_size
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 19 21:17:18 PDT 2016
Author: arsenm
Date: Fri Aug 19 23:17:17 2016
New Revision: 279359
URL: http://llvm.org/viewvc/llvm-project?rev=279359&view=rev
Log:
amdgpu: Fix default case value for get_local_size
Modified:
libclc/trunk/amdgcn/lib/workitem/get_local_size.ll
libclc/trunk/r600/lib/workitem/get_local_size.ll
Modified: libclc/trunk/amdgcn/lib/workitem/get_local_size.ll
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgcn/lib/workitem/get_local_size.ll?rev=279359&r1=279358&r2=279359&view=diff
==============================================================================
--- libclc/trunk/amdgcn/lib/workitem/get_local_size.ll (original)
+++ libclc/trunk/amdgcn/lib/workitem/get_local_size.ll Fri Aug 19 23:17:17 2016
@@ -17,5 +17,5 @@ z_dim:
%z.ext = zext i32 %z to i64
ret i64 %z.ext
default:
- unreachable
+ ret i64 1
}
Modified: libclc/trunk/r600/lib/workitem/get_local_size.ll
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/r600/lib/workitem/get_local_size.ll?rev=279359&r1=279358&r2=279359&view=diff
==============================================================================
--- libclc/trunk/r600/lib/workitem/get_local_size.ll (original)
+++ libclc/trunk/r600/lib/workitem/get_local_size.ll Fri Aug 19 23:17:17 2016
@@ -14,5 +14,5 @@ z_dim:
%z = call i32 @llvm.r600.read.local.size.z()
ret i32 %z
default:
- unreachable
+ ret i32 1
}
More information about the cfe-commits
mailing list