Generalize the zext(trunc(t) & C) instcombine to work even with
authorDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 16:30:21 +0000 (16:30 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 16:30:21 +0000 (16:30 +0000)
commitfd3daa74c2e2df49150c710270c767a4564f04e1
treea08d25bb0e029404b4c72f557effc80f0c6d9738
parent6864db6fac4b9e0c857966e529961c0f31da5814
Generalize the zext(trunc(t) & C) instcombine to work even with
C is not a low-bits mask, and add a similar instcombine for
zext((trunc(t) & C) ^ C).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/trunc-mask-ext.ll