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
This commit is contained in:
Chris Lattner 2006-08-22 06:32:56 +00:00
parent d6007d6076
commit 969e262656

View File

@ -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