Skip to content

Commit a339d71

Browse files
Removing 'conditional_t' in handling 4-byte promoted vector argument
1 parent 91aa18b commit a339d71

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sycl/include/sycl/ext/intel/esimd/detail/memory_intrin.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ __esimd_scatter_scaled(__ESIMD_DNS::simd_mask_storage_t<N> pred,
427427
// determine the original element's type size (as __esimd_scatter_scaled
428428
// requires vals to be a vector of 4-byte integers)
429429
constexpr size_t OrigSize = __ESIMD_DNS::ElemsPerAddrDecoding(TySizeLog2);
430-
using RestoredTy = std::conditional_t<sizeof(Ty) == OrigSize, Ty,
431-
__ESIMD_DNS::uint_type_t<OrigSize>>;
430+
using RestoredTy = __ESIMD_DNS::uint_type_t<OrigSize>;
432431

433432
sycl::detail::ESIMDDeviceInterface *I =
434433
sycl::detail::getESIMDDeviceInterface();
@@ -643,8 +642,7 @@ __esimd_gather_masked_scaled2(SurfIndAliasTy surf_ind, uint32_t global_offset,
643642
// determine the original element's type size (as __esimd_scatter_scaled
644643
// requires vals to be a vector of 4-byte integers)
645644
constexpr size_t OrigSize = __ESIMD_DNS::ElemsPerAddrDecoding(TySizeLog2);
646-
using RestoredTy = std::conditional_t<sizeof(Ty) == OrigSize, Ty,
647-
__ESIMD_DNS::uint_type_t<OrigSize>>;
645+
using RestoredTy = __ESIMD_DNS::uint_type_t<OrigSize>;
648646

649647
__ESIMD_DNS::vector_type_t<Ty, N> retv = 0;
650648
sycl::detail::ESIMDDeviceInterface *I =

0 commit comments

Comments
 (0)