Teach InstCombine to fold "(shr exact X, Y) == 0" --> X == 0, fixing #1 from
commitb042f8e9699dd15d7ac48bb9b9475122b1673687
authorNick Lewycky <nicholas@mxc.ca>
Mon, 28 Feb 2011 08:31:40 +0000 (28 08:31 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 28 Feb 2011 08:31:40 +0000 (28 08:31 +0000)
treeb4f6931415cb55575b9c575ecf700f970dc7ee2b
parent3dfd98744c1f6e6c5d13e419b63ac69894ae84cf
Teach InstCombine to fold "(shr exact X, Y) == 0" --> X == 0, fixing #1 from
PR9343.

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