RegPressure: API for speculatively checking instruction pressure.
authorAndrew Trick <atrick@apple.com>
Thu, 10 May 2012 19:11:52 +0000 (19:11 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 10 May 2012 19:11:52 +0000 (19:11 +0000)
commit55ba5dff3c1a723adf302f1124aafde797dbf31a
tree9aa911dd878dc5387ce89beac28b995231ff186f
parentd25303533909f62eae18ee53ed0ff692174b092c
RegPressure: API for speculatively checking instruction pressure.

Added getMaxExcessUpward/DownwardPressure. They somewhat abuse the
tracker by speculatively handling an instruction out of order. But it
is convenient for now. In the future, we will cache each instruction's
pressure contribution to make this efficient.

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