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

Chandler Carruth chandlerc at gmail.com
Sun Nov 13 14:50:10 PST 2011


Author: chandlerc
Date: Sun Nov 13 16:50:09 2011
New Revision: 144513

URL: http://llvm.org/viewvc/llvm-project?rev=144513&view=rev
Log:
Cleanup some 80-columns violations and poor formatting. These snuck by
when I was reading through the code for style.

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=144513&r1=144512&r2=144513&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Sun Nov 13 16:50:09 2011
@@ -537,7 +537,8 @@
 
     if (!LoopBlockSet.empty()) {
       BadLoop = true;
-      for (SmallPtrSet<MachineBasicBlock *, 16>::iterator LBI = LoopBlockSet.begin(), LBE = LoopBlockSet.end();
+      for (BlockFilterSet::iterator LBI = LoopBlockSet.begin(),
+                                    LBE = LoopBlockSet.end();
            LBI != LBE; ++LBI)
         dbgs() << "Loop contains blocks never placed into a chain!\n"
                << "  Loop header:  " << getBlockName(*L.block_begin()) << "\n"
@@ -597,7 +598,8 @@
     for (MachineFunction::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI)
       FunctionBlockSet.insert(FI);
 
-    for (BlockChain::iterator BCI = FunctionChain.begin(), BCE = FunctionChain.end();
+    for (BlockChain::iterator BCI = FunctionChain.begin(),
+                              BCE = FunctionChain.end();
          BCI != BCE; ++BCI)
       if (!FunctionBlockSet.erase(*BCI)) {
         BadFunc = true;
@@ -607,8 +609,9 @@
 
     if (!FunctionBlockSet.empty()) {
       BadFunc = true;
-      for (SmallPtrSet<MachineBasicBlock *, 16>::iterator FBI = FunctionBlockSet.begin(),
-           FBE = FunctionBlockSet.end(); FBI != FBE; ++FBI)
+      for (FunctionBlockSetType::iterator FBI = FunctionBlockSet.begin(),
+                                          FBE = FunctionBlockSet.end();
+           FBI != FBE; ++FBI)
         dbgs() << "Function contains blocks never placed into a chain!\n"
                << "  Bad block:    " << getBlockName(*FBI) << "\n";
     }
@@ -618,7 +621,8 @@
   // Splice the blocks into place.
   MachineFunction::iterator InsertPos = F.begin();
   SmallVector<MachineOperand, 4> Cond; // For AnalyzeBranch.
-  for (BlockChain::iterator BI = FunctionChain.begin(), BE = FunctionChain.end();
+  for (BlockChain::iterator BI = FunctionChain.begin(),
+                            BE = FunctionChain.end();
        BI != BE; ++BI) {
     DEBUG(dbgs() << (BI == FunctionChain.begin() ? "Placing chain "
                                                   : "          ... ")





More information about the llvm-commits mailing list