This patch tries to convert fmad with constant srcs, to an add with an output modifier, if the fmad multiply constant is one of the acceptable ones for an output modifier, also if the add src divided by the modifier is an inlinable constant.
I've seen amdgpu-pro vulkan driver do this optimisation.