[MachineLICM] Use newer model of register pressure sets.
authorDaniel Jasper <djasper@google.com>
Tue, 14 Apr 2015 11:56:25 +0000 (11:56 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 14 Apr 2015 11:56:25 +0000 (11:56 +0000)
commit6c456f035108a53f3868d30e01941a62439d3052
treece85b0f8d762901687331c7456244b864a7fa858
parent4792454733840d80550179ee0e698e71402cc48e
[MachineLICM] Use newer model of register pressure sets.

TargetRegisterInfo::getRegPressureLimit has a note that it is an old
model that relies on manually entered classes. Using the newer model of
register pressure sets seems more appropriate. We might eventually even
switch to lib/CodeGen/RegisterPressure.cpp, but we should probably do
incremental changes here.

Using the newer model also makes it easier to take regmasks into account
which is necessary to fix llvm.org/PR23143. I am currently also
preparing a patch for that, but would like to do this switch
independently.

Review: http://reviews.llvm.org/D8986

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