diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-26 21:37:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-26 21:37:37 +0000 |
commit | edeffb37dc41591b3d3943a5c02c04e55d348524 (patch) | |
tree | 36bcca37c0f7179fd442bf709ed08e82e21c8ce0 /include/llvm/CodeGen | |
parent | 946bca5bae2539ca55f8fb4700bff8b5e3f5a7eb (diff) | |
download | external_llvm-edeffb37dc41591b3d3943a5c02c04e55d348524.zip external_llvm-edeffb37dc41591b3d3943a5c02c04e55d348524.tar.gz external_llvm-edeffb37dc41591b3d3943a5c02c04e55d348524.tar.bz2 |
Joining an interval with a dead copy instruction. Shorten the live range to the last use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 451905f..4f3af88 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -258,9 +258,11 @@ namespace llvm { 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. |