OSDN Git Service

[InstCombine] Remove unreachable code for turning an And where all demanded bits...
authorCraig Topper <craig.topper@gmail.com>
Wed, 12 Apr 2017 19:08:03 +0000 (19:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 12 Apr 2017 19:08:03 +0000 (19:08 +0000)
commit1db7e25e94b4ee8959cef787eb8da09135433249
tree21adb14ce57ed2399f150aaefda45e300316cc18
parent2c5adb18ba8739f7a9171fe9600714170947522b
[InstCombine] Remove unreachable code for turning an And where all demanded bits on both sides are known to be zero into a constant 0.

We already handled a superset check that included the known ones too and folded to a constant that may include ones. But it can also handle the case of no ones.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300093 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp