InstCombine: Merge "(trunc x) == C1 & (and x, CA) == C2" into a single and+icmp.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 Apr 2011 16:58:40 +0000 (16:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 Apr 2011 16:58:40 +0000 (16:58 +0000)
commit264ac878b26e90fe446aba9163d714d28d05bd8d
tree466733b0d98cefc3f4d48278c0fc8ada7bcaa3c8
parent7a20a37bacfb2abc0622768fb9d25797518b1f0e
InstCombine: Merge "(trunc x) == C1 & (and x, CA) == C2" into a single and+icmp.

This happens when GVN widens loads. Part of PR6627.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130405 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/merge-icmp.ll [new file with mode: 0644]