[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h

Evan Cheng evan.cheng at apple.com
Mon Feb 26 13:37:53 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

LiveIntervalAnalysis.h updated: 1.74 -> 1.75
---
Log message:

Joining an interval with a dead copy instruction. Shorten the live range to the last use.

---
Diffs of the changes:  (+5 -3)

 LiveIntervalAnalysis.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.74 llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.75
--- llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.74	Thu Feb 22 17:52:23 2007
+++ llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h	Mon Feb 26 15:37:37 2007
@@ -258,9 +258,11 @@
     bool AdjustCopiesBackFrom(LiveInterval &IntA, LiveInterval &IntB,
                               MachineInstr *CopyMI);
 
-    /// hasRegisterUse - Returns true if there is any use of the specific
-    /// reg between indexes Start and End.
-    bool hasRegisterUse(unsigned Reg, unsigned Start, unsigned End);
+    /// lastRegisterUse - Returns the last use of the specific register between
+    /// cycles Start and End. It also returns the use operand by reference. It
+    /// returns NULL if there are no uses.
+    MachineInstr *lastRegisterUse(unsigned Reg, unsigned Start, unsigned End,
+                                  MachineOperand *&MOU);
 
     /// unsetRegisterKill - Unset IsKill property of all uses of specific
     /// register of the specific instruction.






More information about the llvm-commits mailing list