Revert r55817. It broke PIC. FastISel will need to find a different
authorDan Gohman <gohman@apple.com>
Fri, 5 Sep 2008 18:13:01 +0000 (18:13 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 5 Sep 2008 18:13:01 +0000 (18:13 +0000)
approach here.

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

lib/CodeGen/SelectionDAG/ScheduleDAGEmit.cpp

index fff444087a8f2bb8f83fdcb4c42a8aa6a9d6e594..21c12d3993f0af3c1689cbe8b2036e6abb7754da 100644 (file)
@@ -731,9 +731,7 @@ void ScheduleDAG::EmitLiveInCopies(MachineBasicBlock *MBB) {
 
 /// EmitSchedule - Emit the machine code in scheduled order.
 MachineBasicBlock *ScheduleDAG::EmitSchedule() {
-  // If we're emitting the first code into the entry block, we
-  // have additional work to do.
-  bool isEntryBB = &MF->front() == BB && BB->empty();
+  bool isEntryBB = &MF->front() == BB;
 
   if (isEntryBB && !SchedLiveInCopies) {
     // If this is the first basic block in the function, and if it has live ins