[InstCombine] use isSubsetOf() for efficiency
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Apr 2017 19:16:52 +0000 (19:16 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Apr 2017 19:16:52 +0000 (19:16 +0000)
commit0f001a470175b1f06dba8be4b1c077326953922d
tree690cb82b65c0a09a93adb655b1431333f163af45
parentab6b47d2e75c8d3cb178d4ce60f7d416cff301cc
[InstCombine] use isSubsetOf() for efficiency

C | ~D == -1
~(C | ~D) == 0
~C & D == 0
D & ~C == 0
D.isSubsetOf(C)

llvm-svn: 301021
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp