CalculateSpillWeights does not need to be a pass
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sun, 10 Nov 2013 17:46:31 +0000 (17:46 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Sun, 10 Nov 2013 17:46:31 +0000 (17:46 +0000)
commita77da0579bc141eba62760e21a216e5d3eafd792
tree5eff822ea3d802fead34e48f3b70d5225e606fbe
parenta22657f45757bd11603bec893aa041425d089819
CalculateSpillWeights does not need to be a pass

Based on discussions with Lang Hames and Jakob Stoklund Olesen at the hacker's lab, and in the light of upcoming work on the PBQP register allocator, it was though that CalcSpillWeights does not need to be a pass. This change will enable to customize / tune the spill weight computation depending on the allocator.

Update the documentation style while there.

No functionnal change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194356 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/CalcSpillWeights.h
include/llvm/InitializePasses.h
lib/CodeGen/CalcSpillWeights.cpp
lib/CodeGen/CodeGen.cpp
lib/CodeGen/RegAllocBasic.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/RegAllocPBQP.cpp