[llvm-commits] [llvm] r105774 - /llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp

Evan Cheng evan.cheng at apple.com
Wed Jun 9 19:08:20 PDT 2010


Author: evancheng
Date: Wed Jun  9 21:08:20 2010
New Revision: 105774

URL: http://llvm.org/viewvc/llvm-project?rev=105774&view=rev
Log:
Delete code that's not safe.

Modified:
    llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp

Modified: llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp?rev=105774&r1=105773&r2=105774&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2ITBlockPass.cpp Wed Jun  9 21:08:20 2010
@@ -230,19 +230,6 @@
         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;
 }
 





More information about the llvm-commits mailing list