It is always good to do a cross-class join when the large register has a tiny interval.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 11 Feb 2010 20:58:45 +0000 (20:58 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 11 Feb 2010 20:58:45 +0000 (20:58 +0000)
commita875fd0fdbf5fd111e97fa909e13ad48936856d1
treee01b128378bc5fbe27a18b9ae3f2f6465d372b8c
parente4c7f0f6ec2fdc1b58541dab4445761a5e9c6e2a
It is always good to do a cross-class join when the large register has a tiny interval.

Also avoid division by zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp