OSDN Git Service

[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)
commit36ff41aa3723a3aa7b4e7569e9dd56b3bbacfeae
treee1506672fc558c026ba1805c2109a9d53851df0d
parentfc0391434bb5768173262454af1eaf5ac6ca2f33
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/cast.ll