there is no need to remove this instruction, linscan does it already as it
authorChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 16:24:20 +0000 (16:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 16:24:20 +0000 (16:24 +0000)
removes noop moves.

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

lib/CodeGen/LiveIntervalAnalysis.cpp

index 580895dd864864937bd2c24a01654d12923abd76..c0d1b2a89f571fe466a8d4dd6744376cbd9fe010 100644 (file)
@@ -199,11 +199,6 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
     }
   }
 
-  // If we inserted a placeholder instruction at the entry of the block, remove
-  // it now.
-  if (fn.livein_begin() != fn.livein_end())
-    fn.begin()->erase(fn.begin()->begin());
-
   DEBUG(dump());
   return true;
 }