summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SpillPlacement.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-11 02:21:30 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-11 02:21:30 +0000
commite4506cddc5564633c6fc87c2df4bccbac0391bfc (patch)
tree30bbb14d4cb61d56fe643e56adff8747c7daf29d /lib/CodeGen/SpillPlacement.h
parentbf5a4c36bc3505e3c924f10beafed1b1171304fa (diff)
Increase the size of SpillPlacement::BlockFrequencies.
This SmallVector's median size during a Clang build was 7. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
-rw-r--r--lib/CodeGen/SpillPlacement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h
index 43fc7f50cef..e43e95e62a1 100644
--- a/lib/CodeGen/SpillPlacement.h
+++ b/lib/CodeGen/SpillPlacement.h
@@ -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 MachineFunctionPass {
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.