Fold fclamp feeding compare.
An FClamp instruction forces a values to be within a certain interval. When the upper or lower bound of the FClamp is a constant and the value being compared with is a constant, then in some case we can fold the compared because the entire range is say less than the value. Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/1549.
Loading
Please register or sign in to comment