Fix handling of max and full set.
commitcdb44fa9e33ff76ddac24811629ff6aee6d191ec
authorNick Lewycky <nicholas@mxc.ca>
Sat, 11 Jul 2009 19:22:21 +0000 (11 19:22 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 11 Jul 2009 19:22:21 +0000 (11 19:22 +0000)
tree3916e2641e249f3c45f832f68c021557f8a67c6a
parent5f98ca246c5e3fda7ac6f61ea61923acd493c70d
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