From 0cfc497f195ab9f5d2d886b86a7bb9a15b2ef11b Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Sat, 30 Oct 2010 01:26:16 +0000 Subject: [PATCH] Make sure copies are inserted after any exception handling labels at the top of a basic block. llvm-svn: 117764 --- llvm/lib/CodeGen/SplitKit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 763cce82519b..5b5b602952e4 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -799,7 +799,7 @@ void SplitEditor::leaveIntvAtTop(MachineBasicBlock &MBB) { // We are going to insert a back copy, so we must have a dupli_. VNInfo *VNI = dupli_.defByCopyFrom(openli_.getLI()->reg, ParentVNI, - MBB, MBB.begin()); + MBB, MBB.SkipPHIsAndLabels(MBB.begin())); // Finally we must make sure that openli is properly extended from Start to // the new copy.