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)
commit567daf3ce8ee278893b4065cfb13feae8d2c82a4
tree737e23bcd0b62315eb76bc5e36248557d1f9fe33
parent461ea7f005698357d9e3170bdbdab47c78449426
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.

llvm-svn: 76360
llvm/lib/Support/ConstantRange.cpp
llvm/unittests/Support/ConstantRangeTest.cpp