Commit af482435 authored by Committed by Erik Faye-LundBrowse files
microsoft/clc: Add an optimization pass for vec4 reads/writes of vec3 variables
Without this pass, copy_prop is unable to see that SPIR-V ends up creating a vec4 out of a vec3 and undef, writing it to a vec3 variable, then reading the vec4 out of the vec3 variable and just not using the w component. This is apparently common with unoptimized LLVM passing vec3 as function args.
Showing with 74 additions and 0 deletions