diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-12 08:50:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-12 08:50:34 +0000 |
commit | 687d1080abc51aac365d4f263ef206162815a86a (patch) | |
tree | 31e4a518a9a2e6d39858b20921f868948a28ec0b /include/llvm/CodeGen/LiveInterval.h | |
parent | ba6246963405f95a9a2b76ff2694136bfdb88a61 (diff) | |
download | external_llvm-687d1080abc51aac365d4f263ef206162815a86a.zip external_llvm-687d1080abc51aac365d4f263ef206162815a86a.tar.gz external_llvm-687d1080abc51aac365d4f263ef206162815a86a.tar.bz2 |
EXTRACT_SUBREG coalescing support. The coalescer now treats EXTRACT_SUBREG like
(almost) a register copy. However, it always coalesced to the register of the
RHS (the super-register). All uses of the result of a EXTRACT_SUBREG are sub-
register uses which adds subtle complications to load folding, spiller rewrite,
etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 50ac158..34e53a9 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -155,7 +155,7 @@ namespace llvm { /// copyValNumInfo - Copy the value number info for one value number to /// another. - void copyValNumInfo(VNInfo *DstValNo, VNInfo *SrcValNo) { + void copyValNumInfo(VNInfo *DstValNo, const VNInfo *SrcValNo) { DstValNo->def = SrcValNo->def; DstValNo->reg = SrcValNo->reg; DstValNo->kills = SrcValNo->kills; @@ -241,11 +241,23 @@ namespace llvm { void MergeInClobberRanges(const LiveInterval &Clobbers, BumpPtrAllocator &VNInfoAllocator); - /// MergeRangesInAsValue - Merge all of the intervals in RHS into this live - /// interval as the specified value number. The LiveRanges in RHS are + /// MergeRangesInAsValue - Merge all of the live ranges in RHS into this + /// live interval as the specified value number. The LiveRanges in RHS are /// allowed to overlap with LiveRanges in the current interval, but only if /// the overlapping LiveRanges have the specified value number. void MergeRangesInAsValue(const LiveInterval &RHS, VNInfo *LHSValNo); + + /// MergeValueInAsValue - Merge all of the live ranges of a specific val# + /// in RHS into this live interval as the specified value number. + /// The LiveRanges in RHS are allowed to overlap with LiveRanges in the + /// current interval, but only if the overlapping LiveRanges have the + /// specified value number. + void MergeValueInAsValue(const LiveInterval &RHS, + VNInfo *RHSValNo, VNInfo *LHSValNo); + + /// Copy - Copy the specified live interval. This copies all the fields + /// except for the register of the interval. + void Copy(const LiveInterval &RHS, BumpPtrAllocator &VNInfoAllocator); bool empty() const { return ranges.empty(); } |