make ConstantRange::getSetSize() properly compute the size of wrapped and full sets.
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 16 Jul 2012 18:08:12 +0000 (18:08 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 16 Jul 2012 18:08:12 +0000 (18:08 +0000)
commit367308f798338e162b4ab76efa785caa847487c0
tree5511db0ab92077212598651dd7622c923bed1d59
parent3591955bce8dd3fe638a913f23bf479670dbff4d
make ConstantRange::getSetSize() properly compute the size of wrapped and full sets.
Make it always return APInts with the same bitwidth for the same ConstantRange bitwidth to simply clients

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160294 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/ConstantRange.cpp
unittests/Support/ConstantRangeTest.cpp