Fold (X & C1) | (Y & C2) -> (X|Y) & C3 when possible.
authorChris Lattner <sabre@nondot.org>
Thu, 14 Sep 2006 21:11:37 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Sep 2006 21:11:37 +0000 (21:11 +0000)
commit1ec72738ac685543a02068559877ec713b36a463
tree73d2700488ac06c8a29ca77d52b8bf74e3576386
parenta5faa83d44c3f1daaa960601f0ad56ad6c8a6878
Fold (X & C1) | (Y & C2)  -> (X|Y) & C3 when possible.
This implements CodeGen/X86/and-or-fold.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30379 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp