On Tue Mar 12 22:02:29 2024 +0000, Zebediah Figura wrote:
vs_2_0 uses "slt dst, -mul, mul" instead of "slt dst, 0, mul". Does this ever make a difference? Should we do it anyway just to avoid an otherwise unnecessary constant?
If I am not mistaken, it should not make a difference. But since we don't have neg as a modifier, only as an instruction, in HLSL IR, we have to add the NEG as an additional instruction.
I added the change though, in case there is some difference I am not considering.