aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-22 06:32:56 +0000
committerChris Lattner <sabre@nondot.org>2006-08-22 06:32:56 +0000
commit969e262656066e76d59b39eb6e8b17ed9f448383 (patch)
treec4ce262d370c9751a8811f9ee394419e98f8d8c1 /include
parentd6007d607641b6dae3511b8ebc1d752ff327aed0 (diff)
downloadexternal_llvm-969e262656066e76d59b39eb6e8b17ed9f448383.zip
external_llvm-969e262656066e76d59b39eb6e8b17ed9f448383.tar.gz
external_llvm-969e262656066e76d59b39eb6e8b17ed9f448383.tar.bz2
Switch to using smallvector for liveintervals. This speeds up live interval
analysis 11% on kc++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index fc216b5..183cd9a 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -21,6 +21,7 @@
#ifndef LLVM_CODEGEN_LIVEINTERVAL_H
#define LLVM_CODEGEN_LIVEINTERVAL_H
+#include "llvm/ADT/SmallVector.h"
#include <iosfwd>
#include <vector>
#include <cassert>
@@ -72,7 +73,7 @@ namespace llvm {
/// register or value. This class also contains a bit of register allocator
/// state.
struct LiveInterval {
- typedef std::vector<LiveRange> Ranges;
+ typedef SmallVector<LiveRange,4> Ranges;
unsigned reg; // the register of this interval
float weight; // weight of this interval
Ranges ranges; // the ranges in which this register is live