Fix handling of max and full set.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 11 Jul 2009 19:22:21 +0000 (19:22 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 11 Jul 2009 19:22:21 +0000 (19:22 +0000)
commit646ca92bfc20002a5c6d9b2b42e6940fd86ff7c9
tree3916e2641e249f3c45f832f68c021557f8a67c6a
parentd7073db1af89c0340eb81740beb78875d3c4a2f8
Fix handling of max and full set.

A full set is a constant range that represents any number. If you take the
umax of that and [5, 10) you end up with [5, INT_MAX] because the values less
than 5 would be umax's against a value which is at least 5.

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