Re:Don't "optimize" conditional moves in shaders with mix()+...
by chrisjj on Tuesday February 11, 2025 @05:30PM
(#43019208)
PS Why is /width*width not eliminated on compilation?
[ Parent
| on HN ]
Re:Don't "optimize" conditional moves in shaders with mix()+...
by Cieric on Thursday February 13, 2025 @10:56AM
(#43037189)
Good question, I'm assuming it's due to the calculation happen across a memory barrier of some kind or due to all the branches in between so llvm is probably avoiding the optimization. It was quite a while ago so it is something I could re-investigate and actually try and fix. I would have to wait for downtime with all the other tickets I'm getting though. It's also just something that dxc itself should be doing, but I have no control over that.