Skip to content

Commit ba02226

Browse files
authored
Remove redundant loop tail zeroing which is no longer needed (#517)
1 parent 33082c2 commit ba02226

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Source/astcenc_ideal_endpoints_and_weights.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,12 +853,6 @@ void compute_ideal_weights_for_decimation(
853853
promise(texel_count > 0);
854854
promise(weight_count > 0);
855855

856-
// Ensure that the end of the output arrays that are used for SIMD paths later are filled so we
857-
// can safely run SIMD elsewhere without a loop tail. Note that this is always safe as weight
858-
// arrays always contain space for 64 elements
859-
unsigned int prev_weight_count_simd = round_down_to_simd_multiple_vla(weight_count - 1);
860-
storea(vfloat::zero(), dec_weight_ideal_value + prev_weight_count_simd);
861-
862856
// If we have a 1:1 mapping just shortcut the computation. Transfer enough to also copy the
863857
// zero-initialized SIMD over-fetch region
864858
if (is_direct)

0 commit comments

Comments
 (0)