I accidentally removed this check in an earlier commit, which cause breakage in the...
authorOwen Anderson <resistor@mac.com>
Wed, 21 Jan 2009 08:18:03 +0000 (08:18 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 21 Jan 2009 08:18:03 +0000 (08:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index 3c8257f1dac1065621fe325b57fd37210489889c..ca4f7ec6f2d2c3460dfebfc6b6db6c847bde6b4a 100644 (file)
@@ -1219,6 +1219,10 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
   MachineInstr *DefMI = (ValNo->def != ~0U)
     ? LIs->getInstructionFromIndex(ValNo->def) : NULL;
 
+  // If this would create a new join point, do not split.
+  if (DefMI && createsNewJoin(LR, DefMI->getParent(), Barrier->getParent()))
+    return false;
+
   // Find all references in the barrier mbb.
   SmallPtrSet<MachineInstr*, 4> RefsInMBB;
   for (MachineRegisterInfo::reg_iterator I = MRI->reg_begin(CurrLI->reg),