aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Cache.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2024-01-20 23:57:19 +0100
committerRobin Voetter <robin@voetter.nl>2024-02-04 19:09:28 +0100
commit54ec9365498635aa127ff13dfbdd3942890b53d0 (patch)
treea6df4f0650bc8972746fa4c1636ee55af4143fef /src/codegen/spirv/Cache.zig
parentb67d983abda198c69fbcde68a961e0e8b92b7939 (diff)
downloadzig-54ec9365498635aa127ff13dfbdd3942890b53d0.tar.gz
zig-54ec9365498635aa127ff13dfbdd3942890b53d0.zip
spirv: wrap strange its before instead of after operation
Wrapping strange integers before an operation was initially done as an attempt to minimize the amount of normalizations required: This way, there would not be a normalization necessary between two modular operations. This was a premature optimization, since the resulting logic is more complicated than naive way of wrapping the result after the operation. This commit updates handling of strange integers to do wrapping after each operation. It also seems slightly more efficient in terms of size of generated code, as it reduces the size of the behavior tests binary by about 1%.
Diffstat (limited to 'src/codegen/spirv/Cache.zig')
0 files changed, 0 insertions, 0 deletions