Allow copy coalescing in more cases: if sum of node degrees is more than
authorVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:45:47 +0000 (00:45 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:45:47 +0000 (00:45 +0000)
commit32f81a3469bd132116f892269c64682845d54e86
tree963a538f8b98080f00892ae56ed032ca487e45c7
parentdcde9bd285dcc6e86677acfb959307a255424526
Allow copy coalescing in more cases: if sum of node degrees is more than
than #available regs, compute the sum excluding duplicates and if that
is less than #regs, go ahead and coalesce.
Add method IGNode::getCombinedDegree to count excluding duplicates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAlloc/IGNode.cpp
lib/CodeGen/RegAlloc/LiveRangeInfo.cpp
lib/Target/SparcV9/RegAlloc/IGNode.cpp
lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp