From 3089f711d20e084006a35d5e4adbe9d8233d2fdc Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Tue, 10 Dec 2024 09:28:22 +0100 Subject: [PATCH] include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h - remove extra condition checks from __find_start_point_in Signed-off-by: Sergey Kopienko --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h index be1048d81b5..ed4c7df1ded 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h @@ -97,15 +97,6 @@ _split_point_t<_Index> __find_start_point_in(const _Rng1& __rng1, const _Index __rng1_from, _Index __rng1_to, const _Rng2& __rng2, const _Index __rng2_from, _Index __rng2_to, const _Index __i_elem, _Compare __comp) { - if (__i_elem == 0) - return _split_point_t<_Index>{ 0, 0 }; - - if (__rng1_from == __rng1_to) - return _split_point_t<_Index>{ __rng1_from, __rng2_from + __i_elem }; - - if (__rng2_from == __rng2_to) - return _split_point_t<_Index>{ __rng1_from + __i_elem, __rng2_from }; - // ----------------------- EXAMPLE ------------------------ // Let's consider the following input data: // rng1.size() = 10