Instcombine zext(trunc(x) & mask) to x&mask, even if the trunc has
authorDan Gohman <gohman@apple.com>
Wed, 17 Jun 2009 23:17:05 +0000 (23:17 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 17 Jun 2009 23:17:05 +0000 (23:17 +0000)
commita392c788be3ddf925d460c3098c07e882bcf31bf
treea5fbc37b49faa79cc1ab407f256d303a7095dfd3
parenta23d2c126298b5193be46c7d4a1d079a9109ffaf
Instcombine zext(trunc(x) & mask) to x&mask, even if the trunc has
multiple users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73656 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/trunc-mask-ext.ll [new file with mode: 0644]