[Openmp-commits] [openmp] 84ac0df - [libomptarget][nfc][amdgcn] Replace magic number with named intrinsic
Jon Chesterfield via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 5 03:50:45 PST 2020
Author: Jon Chesterfield
Date: 2020-03-05T11:50:30Z
New Revision: 84ac0dffd408a6d981ac753ba886cfa2e4ec75e8
URL: https://github.com/llvm/llvm-project/commit/84ac0dffd408a6d981ac753ba886cfa2e4ec75e8
DIFF: https://github.com/llvm/llvm-project/commit/84ac0dffd408a6d981ac753ba886cfa2e4ec75e8.diff
LOG: [libomptarget][nfc][amdgcn] Replace magic number with named intrinsic
Added:
Modified:
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
Removed:
################################################################################
diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
index 8977e1698ab5..a32bcd87a648 100644
--- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
+++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
@@ -47,8 +47,7 @@ DEVICE double __kmpc_impl_get_wtime() {
// Warp vote function
DEVICE __kmpc_impl_lanemask_t __kmpc_impl_activemask() {
- // 33 is ICMP_NE from llvm/include/llvm/IR/InstrTypes.h
- return __builtin_amdgcn_uicmp(1, 0, 33);
+ return __builtin_amdgcn_read_exec();
}
DEVICE int32_t __kmpc_impl_shfl_sync(__kmpc_impl_lanemask_t, int32_t var,
More information about the Openmp-commits
mailing list