Fix ConstantRange::unionWith. Also make it work a little hard in some cases to
authorNick Lewycky <nicholas@mxc.ca>
Sun, 19 Jul 2009 03:44:35 +0000 (03:44 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 19 Jul 2009 03:44:35 +0000 (03:44 +0000)
commit7e7dc45eb15d3739564f2a63ab1c468c57d94ff8
tree82087bb071e8db26508c488b7009c2bd7ba4bd41
parentaafa94260d5b1b6422258ed3db7244fe4449f217
Fix ConstantRange::unionWith. Also make it work a little hard in some cases to
return the smallest union of two ranges instead of just any range that happens
to contain the union.

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