[llvm-commits] [llvm] r163882 - /llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp

Duncan Sands baldrick at free.fr
Fri Sep 14 02:00:11 PDT 2012


Author: baldrick
Date: Fri Sep 14 04:00:11 2012
New Revision: 163882

URL: http://llvm.org/viewvc/llvm-project?rev=163882&view=rev
Log:
Remove silly dead store.  Patch by Ettl Martin.

Modified:
    llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp

Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=163882&r1=163881&r2=163882&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Fri Sep 14 04:00:11 2012
@@ -500,11 +500,10 @@
     assert(BB);
     assert(BlockToChain[BB] == &Chain);
     assert(*llvm::prior(Chain.end()) == BB);
-    MachineBasicBlock *BestSucc = 0;
 
     // Look for the best viable successor if there is one to place immediately
     // after this block.
-    BestSucc = selectBestSuccessor(BB, Chain, BlockFilter);
+    MachineBasicBlock *BestSucc = selectBestSuccessor(BB, Chain, BlockFilter);
 
     // If an immediate successor isn't available, look for the best viable
     // block among those we've identified as not violating the loop's CFG at





More information about the llvm-commits mailing list