Make InstCombiner::FoldAndOfICmps create a ConstantRange that's the
authorAnders Carlsson <andersca@mac.com>
Tue, 1 Mar 2011 15:05:01 +0000 (15:05 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 1 Mar 2011 15:05:01 +0000 (15:05 +0000)
commitd70be0b2c199183077626a9e756ecd14b807dd56
tree5b85f4b5a42437fad9909ea63caaac3099a06c00
parent32e20a45e5c838c139ffc5650177842796b5a77d
Make InstCombiner::FoldAndOfICmps create a ConstantRange that's the
intersection of the LHS and RHS ConstantRanges and return "false" when
the range is empty.

This simplifies some code and catches some extra cases.

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