summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-08 11:04:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-08 11:04:35 +0000
commit0a1fcce09230e9b4bd30a8f07447aa075dce7470 (patch)
tree4c231f234610070704963a861fb538ebd859d98b /include
parent86fb9fdb2000213d3cd5a082e8501cb8fe974a14 (diff)
downloadllvm-0a1fcce09230e9b4bd30a8f07447aa075dce7470.tar.gz
llvm-0a1fcce09230e9b4bd30a8f07447aa075dce7470.tar.bz2
llvm-0a1fcce09230e9b4bd30a8f07447aa075dce7470.tar.xz
Fix PR3486. Fix a bug in code that manually patch physical register live interval after its sub-register is coalesced with a virtual register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index b87214f5e2..aec72858c8 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -282,6 +282,10 @@ namespace llvm {
I = r2iMap_.insert(std::make_pair(reg, createInterval(reg))).first;
return *I->second;
}
+
+ /// dupInterval - Duplicate a live interval. The caller is responsible for
+ /// managing the allocated memory.
+ LiveInterval *dupInterval(LiveInterval *li);
/// addLiveRangeToEndOfBlock - Given a register and an instruction,
/// adds a live range from that instruction to the end of its MBB.