Cleanup register pressure calculation in MachineLICM.
authorDaniel Jasper <djasper@google.com>
Tue, 7 Apr 2015 16:42:35 +0000 (16:42 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 7 Apr 2015 16:42:35 +0000 (16:42 +0000)
commit6221f41a5ebce1a8fe7a5909fba29e6388430c01
tree729a29882ad81a044c50391d3475ce6dc03e244d
parentdb3b3a0b9f447b5d941901c16a049b6ace2eeb69
Cleanup register pressure calculation in MachineLICM.

There were four almost identical implementations of calculating/updating
the register pressure for a certain MachineInstr. Cleanup to have a
single implementation (well, controlled with two bool flags until this
is cleaned up more).

No functional changes intended.

Tested by verify that there are no binary changes in the entire llvm
test-suite. A new test was added separately in r234309 as it revealed a
pre-existing error in the register pressure calculation.

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