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 | f46642ada6a52ae61d01dac176fa59e6c9b598fe (patch) | |
| tree | d755bde667d52d9a0b41b0fa24396ca2444ebfb3 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h | |
| parent | 54d399ac5d029889771fdac90693e640b3a03665 (diff) | |
| download | bcm5719-llvm-f46642ada6a52ae61d01dac176fa59e6c9b598fe.tar.gz bcm5719-llvm-f46642ada6a52ae61d01dac176fa59e6c9b598fe.zip | |
Remove val# defined by a remat'ed def that is now dead.
llvm-svn: 58294
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.h')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h index 330c476dbf5..abe392990d1 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h +++ b/llvm/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, |

