summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-11-07 07:05:05 +0000
committerAndrew Trick <atrick@apple.com>2012-11-07 07:05:05 +0000
commit881a05b46c28299046bd0dc3d0b8c6677e68a4d7 (patch)
tree43aa7389a97b015e87f61f7f7e12dfd998f2dcb1 /include
parent168c190c581d21d50edefeedebe38400a12845e1 (diff)
downloadllvm-881a05b46c28299046bd0dc3d0b8c6677e68a4d7.tar.gz
llvm-881a05b46c28299046bd0dc3d0b8c6677e68a4d7.tar.bz2
llvm-881a05b46c28299046bd0dc3d0b8c6677e68a4d7.tar.xz
misched: handle on-the-fly regpressure queries better for 2-addr
instructions without relying on liveintervals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/RegisterPressure.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/RegisterPressure.h b/include/llvm/CodeGen/RegisterPressure.h
index 2043155bc5..30326d05df 100644
--- a/include/llvm/CodeGen/RegisterPressure.h
+++ b/include/llvm/CodeGen/RegisterPressure.h
@@ -43,7 +43,7 @@ struct RegisterPressure {
/// class. This is only useful to account for spilling or rematerialization.
void decrease(const TargetRegisterClass *RC, const TargetRegisterInfo *TRI);
- void dump(const TargetRegisterInfo *TRI);
+ void dump(const TargetRegisterInfo *TRI) const;
};
/// RegisterPressure computed within a region of instructions delimited by
@@ -197,6 +197,7 @@ public:
/// This result is complete if either advance() or recede() has returned true,
/// or if closeRegion() was explicitly invoked.
RegisterPressure &getPressure() { return P; }
+ const RegisterPressure &getPressure() const { return P; }
/// Get the register set pressure at the current position, which may be less
/// than the pressure across the traversed region.