diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-27 23:21:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-27 23:21:01 +0000 |
commit | b3990d5e948769a16d4ee77dbdff8a2bed8fb126 (patch) | |
tree | 576c709653e9a0f2655487d66bc267a007660b8d /lib/CodeGen/SimpleRegisterCoalescing.h | |
parent | 8e7fa916fe87733b3660466b3a1c91d650c473d3 (diff) | |
download | external_llvm-b3990d5e948769a16d4ee77dbdff8a2bed8fb126.zip external_llvm-b3990d5e948769a16d4ee77dbdff8a2bed8fb126.tar.gz external_llvm-b3990d5e948769a16d4ee77dbdff8a2bed8fb126.tar.bz2 |
Remove val# defined by a remat'ed def that is now dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.h')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.h b/lib/CodeGen/SimpleRegisterCoalescing.h index 330c476..abe3929 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.h +++ b/lib/CodeGen/SimpleRegisterCoalescing.h @@ -269,6 +269,11 @@ namespace llvm { /// live range is dead. Return true if live interval is removed. bool ShortenDeadCopySrcLiveRange(LiveInterval &li, MachineInstr *CopyMI); + /// RemoveDeadDef - If a def of a live interval is now determined dead, + /// remove the val# it defines. If the live interval becomes empty, remove + /// it as well. + bool RemoveDeadDef(LiveInterval &li, MachineInstr *DefMI); + /// lastRegisterUse - Returns the last use of the specific register between /// cycles Start and End or NULL if there are no uses. MachineOperand *lastRegisterUse(unsigned Start, unsigned End, unsigned Reg, |