Skip to content

nir: improve initialization in nir_lower_int64.c

Filip Gawin requested to merge (removed):impr/nir_init_nir_lower_int64.c into main

This commit has two tasks: avoid passing unitialized variables futher and avoid unrolling the loop to only last step.

(Because undefined behavior cannot happen, modern compilers at level 2 of optimization assume that if array is accessed without checking range, then they can access any element in array.)

Edit:If you prefer 2 loops I can rewrite.

Edited by Filip Gawin

Merge request reports