DAGCombine: fold (or (and X, M), (and X, N)) -> (and X, (or M, N))
authorTim Northover <tnorthover@apple.com>
Wed, 21 Jan 2015 15:43:28 +0000 (15:43 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 21 Jan 2015 15:43:28 +0000 (15:43 +0000)
commit47f47f5d2a94c2fcd2b3090d2547ec1f4bf4b03b
tree6c8a190445a2798d258d918d44bf8e5ae1f2dc76
parent0b4244ade15fe88c15154efae1add11a0543eee0
DAGCombine: fold (or (and X, M), (and X, N)) -> (and X, (or M, N))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/or-combine.ll [new file with mode: 0644]
test/CodeGen/R600/extload.ll
test/CodeGen/X86/vselect.ll