From 969e262656066e76d59b39eb6e8b17ed9f448383 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Aug 2006 06:32:56 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/LiveInterval.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index fc216b5939d..183cd9abc9f 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 #include #include @@ -72,7 +73,7 @@ namespace llvm { /// register or value. This class also contains a bit of register allocator /// state. struct LiveInterval { - typedef std::vector Ranges; + typedef SmallVector Ranges; unsigned reg; // the register of this interval float weight; // weight of this interval Ranges ranges; // the ranges in which this register is live