Get rid of sentinel insertion in interval reconstruction. It just masked the
authorOwen Anderson <resistor@mac.com>
Mon, 5 Jan 2009 18:32:26 +0000 (18:32 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 5 Jan 2009 18:32:26 +0000 (18:32 +0000)
problem, rather than fixing it.  The problem has now been fixed the right way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61723 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index 576e9267f2e55a56587cdb3aa42bb514f34f81d3..d8e54e90f080dcee2084f4fce54a73fc91e13d51 100644 (file)
@@ -605,11 +605,6 @@ VNInfo* PreAllocSplitting::PerformPHIConstruction(
   else if (!intrablock && LiveOut.count(MBB))
     return LiveOut[MBB];
   
-  // Insert a sentinel into the map (which also acts as the DFS stack) so that
-  // we won't get stuck in infinite recursion when processing a loop.
-  if (!intrablock)
-    LiveOut[MBB] = 0;
-  
   typedef DenseMap<MachineBasicBlock*, SmallPtrSet<MachineInstr*, 2> > RegMap;
   
   // Check if our block contains any uses or defs.