mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
d6007d6076
commit
969e262656
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user