intel/compiler: Don't cmod propagate into a saturated operation
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 4 Oct 2017 20:49:29 +0000 (13:49 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 5 Oct 2017 18:54:49 +0000 (11:54 -0700)
commitb91ecee04ab2a5b23ff2418b4d709252878cf894
treeabde0c4d8aad0ed433bfdb35c65ee9bad268df26
parent17d78ece36a08d79b95182e36ed99cb65de905ce
intel/compiler: Don't cmod propagate into a saturated operation

Shader-db results on Sky Lake:

    total instructions in shared programs: 12954445 -> 12955125 (0.01%)
    instructions in affected programs: 141862 -> 142542 (0.48%)
    helped: 0
    HURT: 626

Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/compiler/brw_fs_cmod_propagation.cpp
src/intel/compiler/brw_vec4_cmod_propagation.cpp