imageworks/OpenShadingLanguage — pull request #438 by lgritz (2014-12-02 21:36:23+00:00)
Title: New runtimize optimization: mix(a,a,x) -> a  (even if none are constant!)

Lines 1427-1428 is the key. The rest is just comment enhancement.