[InstCombine] remove fold of an icmp pattern that should never happen
authorSanjay Patel <spatel@rotateright.com>
Thu, 1 Sep 2016 14:20:43 +0000 (14:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 1 Sep 2016 14:20:43 +0000 (14:20 +0000)
commitdd861964d125349be735267409dde25cf3bc9f6e
treebef0722c89b7004439ba697149fbc4c3d94576c9
parent07d9f53b515ea9e6399238decc183b42ea1438ba
[InstCombine] remove fold of an icmp pattern that should never happen

While removing a scalar shackle from an icmp fold, I noticed that I couldn't find any tests to trigger
this code path.

The 'and' shrinking transform should be handled by InstCombiner::foldCastedBitwiseLogic()
or eliminated with InstSimplify. The icmp narrowing is part of InstCombiner::foldICmpWithCastAndCast().

Differential Revision: https://reviews.llvm.org/D24031

llvm-svn: 280370
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/cast.ll