summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-01 23:59:48 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-01 23:59:48 +0000
commit3d4114c464d1ec6c9a6088e04d2156f72c4b42ce (patch)
tree02c66ad48606d38e0b462a3562c206ab21ecf745 /lib/CodeGen/SplitKit.h
parente66b7ebfb426c7ed9bc911e9708321e2d8510b41 (diff)
downloadllvm-3d4114c464d1ec6c9a6088e04d2156f72c4b42ce.tar.gz
llvm-3d4114c464d1ec6c9a6088e04d2156f72c4b42ce.tar.bz2
llvm-3d4114c464d1ec6c9a6088e04d2156f72c4b42ce.tar.xz
When inserting copies during splitting, always use the parent register as the
source, and let rewrite() clean it up. This way, kill flags on the inserted copies are fixed as well during rewrite(). We can't just assume that all the copies we insert are going to be kills since critical edges into loop headers sometimes require both source and dest to be live out of a block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index 9a7fa5388a..395df75c5c 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -246,12 +246,12 @@ public:
/// beforehand so mapValue will work.
void addRange(SlotIndex Start, SlotIndex End);
- /// defByCopyFrom - Insert a copy from Reg to li, assuming that Reg carries
- /// ParentVNI. Add a minimal live range for the new value and return it.
- VNInfo *defByCopyFrom(unsigned Reg,
- const VNInfo *ParentVNI,
- MachineBasicBlock &MBB,
- MachineBasicBlock::iterator I);
+ /// defByCopy- Insert a copy from parentli to li, assuming that ParentVNI is
+ /// live at the insert location. Add a minimal live range for the new value
+ /// and return it.
+ VNInfo *defByCopy(const VNInfo *ParentVNI,
+ MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator I);
};