aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineRegisterInfo.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-06-21 18:33:20 +0000
committerAndrew Trick <atrick@apple.com>2013-06-21 18:33:20 +0000
commit03dca5e4b6c41e1e7fa4edad3d7ff8d5f6de7008 (patch)
tree393fd24d6c1a7fce8d30049a0c8f64c2b1c0302c /include/llvm/CodeGen/MachineRegisterInfo.h
parentf1f99f394f367845c4f4528d4d2bce42e65a5f50 (diff)
downloadexternal_llvm-03dca5e4b6c41e1e7fa4edad3d7ff8d5f6de7008.zip
external_llvm-03dca5e4b6c41e1e7fa4edad3d7ff8d5f6de7008.tar.gz
external_llvm-03dca5e4b6c41e1e7fa4edad3d7ff8d5f6de7008.tar.bz2
Handle more cases in LiveRangeEdit::eliminateDeadDefs.
Live intervals for dead physregs may be created during coalescing. We need to update these in the event that their instruction goes away. crash.ll is the unit test that catches it when MI sched is enabled on X86. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRegisterInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineRegisterInfo.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h
index 95c1ffd..7a6dcd0 100644
--- a/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -58,10 +58,6 @@ class MachineRegisterInfo {
/// physical registers.
MachineOperand **PhysRegUseDefLists;
- const TargetRegisterInfo *getTargetRegisterInfo() const {
- return TM.getRegisterInfo();
- }
-
/// getRegUseDefListHead - Return the head pointer for the register use/def
/// list for the specified virtual or physical register.
MachineOperand *&getRegUseDefListHead(unsigned RegNo) {
@@ -116,6 +112,10 @@ public:
explicit MachineRegisterInfo(const TargetMachine &TM);
~MachineRegisterInfo();
+ const TargetRegisterInfo *getTargetRegisterInfo() const {
+ return TM.getRegisterInfo();
+ }
+
//===--------------------------------------------------------------------===//
// Function State
//===--------------------------------------------------------------------===//