Delete code that's not safe.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jun 2010 02:08:20 +0000 (02:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 10 Jun 2010 02:08:20 +0000 (02:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105774 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Thumb2ITBlockPass.cpp

index 691444cdc02ecbb1b1894bf5e55cdcaebd361706..bd8be969926ba71f00510a7b28e3fbdb4201225e 100644 (file)
@@ -230,19 +230,6 @@ bool Thumb2ITBlockPass::InsertITBlock(MachineInstr *First, MachineInstr *Last) {
         MBBI = E;
     }
   } while (MBBI != E);
-
-  // Insert a new block for consecutive predicated instructions.
-  MachineFunction *MF = MBB->getParent();
-  MachineBasicBlock *NewMBB = MF->CreateMachineBasicBlock(MBB->getBasicBlock());
-  MachineFunction::iterator InsertPos = MBB;
-  MF->insert(++InsertPos, NewMBB);
-
-  // Move all the successors of this block to the specified block.
-  NewMBB->transferSuccessors(MBB);
-
-  // Add an edge from CurMBB to NewMBB for the fall-through.
-  MBB->addSuccessor(NewMBB);
-  NewMBB->splice(NewMBB->end(), MBB, ++MBBI, MBB->end());
   return true;
 }