I’d expect most vendors do, at least in their closed source drivers.
You could also check in the mesa project if this is implemented but it’s definitely possible to do
Shader compilers mostly use LLVM even though runtime is a constraint, if the pattern is common enough it’s definitely easy to match (it’s just two intrinsics after all) meaning you can do it for cheap in instcombine which you’re going to be running anyway
ryao|1 year ago
DRAGONERO|1 year ago