[llvm-commits] [llvm] r117764 - /llvm/trunk/lib/CodeGen/SplitKit.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Oct 29 18:26:16 PDT 2010

Author: stoklund
Date: Fri Oct 29 20:26:16 2010
New Revision: 117764

URL: http://llvm.org/viewvc/llvm-project?rev=117764&view=rev
Make sure copies are inserted after any exception handling labels at the top of
a basic block.


Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=117764&r1=117763&r2=117764&view=diff
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Fri Oct 29 20:26:16 2010
@@ -799,7 +799,7 @@
   // 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.

More information about the llvm-commits mailing list