aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SimpleRegisterCoalescing.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-27 23:21:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-27 23:21:01 +0000
commitc00c2a29f47ae0597f156a486238f64a8888a498 (patch)
tree576c709653e9a0f2655487d66bc267a007660b8d /lib/CodeGen/SimpleRegisterCoalescing.h
parentb2b229296a53bc439b39e83e77038e6e1d3e7309 (diff)
downloadexternal_llvm-c00c2a29f47ae0597f156a486238f64a8888a498.tar.gz
external_llvm-c00c2a29f47ae0597f156a486238f64a8888a498.tar.bz2
external_llvm-c00c2a29f47ae0597f156a486238f64a8888a498.zip
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.h b/lib/CodeGen/SimpleRegisterCoalescing.h
index 330c476dbf..abe392990d 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,