commit | 93dcdfe7b76ad458f4e4d66fde0541490a0d1b4b | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Thu Sep 13 18:52:58 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Thu Sep 13 18:52:58 2018 +0000 |
tree | 412b259068c12849e157e291c23bad26cfc0b2cd | |
parent | dc08c466b983a43f906d5730339e15cd78b7bee1 [diff] |
[InstCombine] Fold (xor (min/max X, Y), -1) -> (max/min ~X, ~Y) when X and Y are freely invertible. This allows the xor to be removed completely. This might help with recomitting r341674, but seems good regardless. Coincidentally fixes PR38915. Differential Revision: https://reviews.llvm.org/D51964 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342163 91177308-0d34-0410-b5e6-96231b3b80d8