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

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Oct 26 15:36:03 PDT 2010


Author: stoklund
Date: Tue Oct 26 17:36:02 2010
New Revision: 117405

URL: http://llvm.org/viewvc/llvm-project?rev=117405&view=rev
Log:
Preserve PHIDef bits in cloned values during splitting.

Modified:
    llvm/trunk/lib/CodeGen/SplitKit.cpp

Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=117405&r1=117404&r2=117405&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Tue Oct 26 17:36:02 2010
@@ -321,6 +321,10 @@
   // Create a new value.
   VNInfo *VNI = li_->getNextValue(Idx, 0, lis_.getVNInfoAllocator());
 
+  // Preserve the PHIDef bit.
+  if (ParentVNI->isPHIDef() && Idx == ParentVNI->def)
+    VNI->setIsPHIDef(true);
+
   // Use insert for lookup, so we can add missing values with a second lookup.
   std::pair<ValueMap::iterator,bool> InsP =
     valueMap_.insert(makeVV(ParentVNI, Idx == ParentVNI->def ? VNI : 0));





More information about the llvm-commits mailing list