It is OK to remove extra cast if operation is EQ/NE even though source
authorDevang Patel <dpatel@apple.com>
Thu, 19 Oct 2006 20:59:13 +0000 (20:59 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 19 Oct 2006 20:59:13 +0000 (20:59 +0000)
commit002e499650ee97df34dd53f1a6806860132a256c
treec1c32c2e264b34ef50e9233ba8511c739a5db950
parentdf308fa7aba36d9c7ca29abe24489adbcdfff697
It is OK to remove extra cast if operation is EQ/NE even though source
and destination sign may not match but other conditions are met.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31056 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll [new file with mode: 0644]