mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Use BitVector instead of vector<bool> which can be extremely slow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
#define LLVM_CODEGEN_LIVEVARIABLES_H
|
||||
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
@ -75,7 +76,7 @@ public:
|
||||
/// through. This is a bit set which uses the basic block number as an
|
||||
/// index.
|
||||
///
|
||||
std::vector<bool> AliveBlocks;
|
||||
BitVector AliveBlocks;
|
||||
|
||||
/// Kills - List of MachineInstruction's which are the last use of this
|
||||
/// virtual register (kill it) in their basic block.
|
||||
@ -111,7 +112,7 @@ private:
|
||||
/// are actually register allocatable by the target machine. We can not track
|
||||
/// liveness for values that are not in this set.
|
||||
///
|
||||
std::vector<bool> AllocatablePhysicalRegisters;
|
||||
BitVector AllocatablePhysicalRegisters;
|
||||
|
||||
private: // Intermediate data structures
|
||||
const MRegisterInfo *RegInfo;
|
||||
|
Reference in New Issue
Block a user