[llvm] r215338 - Increase the size of SpillPlacement::BlockFrequencies.

Hans Wennborg hans at hanshq.net
Sun Aug 10 19:21:30 PDT 2014


Author: hans
Date: Sun Aug 10 21:21:30 2014
New Revision: 215338

URL: http://llvm.org/viewvc/llvm-project?rev=215338&view=rev
Log:
Increase the size of SpillPlacement::BlockFrequencies.

This SmallVector's median size during a Clang build was 7.

Modified:
    llvm/trunk/lib/CodeGen/SpillPlacement.h

Modified: llvm/trunk/lib/CodeGen/SpillPlacement.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SpillPlacement.h?rev=215338&r1=215337&r2=215338&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SpillPlacement.h (original)
+++ llvm/trunk/lib/CodeGen/SpillPlacement.h Sun Aug 10 21:21:30 2014
@@ -40,7 +40,7 @@ class MachineBasicBlock;
 class MachineLoopInfo;
 class MachineBlockFrequencyInfo;
 
-class SpillPlacement  : public MachineFunctionPass {
+class SpillPlacement : public MachineFunctionPass {
   struct Node;
   const MachineFunction *MF;
   const EdgeBundles *bundles;
@@ -60,7 +60,7 @@ class SpillPlacement  : public MachineFu
   SmallVector<unsigned, 8> RecentPositive;
 
   // Block frequencies are computed once. Indexed by block number.
-  SmallVector<BlockFrequency, 4> BlockFrequencies;
+  SmallVector<BlockFrequency, 8> BlockFrequencies;
 
 public:
   static char ID; // Pass identification, replacement for typeid.





More information about the llvm-commits mailing list