Move SimpleRegisterCoalescing.h to lib/CodeGen since there is now a common

register coalescer interface: RegisterCoalescing.

llvm-svn: 43714
This commit is contained in:
Evan Cheng 2007-11-05 17:41:38 +00:00
parent a6d9f3c2cf
commit 8bb30184a8
2 changed files with 6 additions and 2 deletions

View File

@ -13,9 +13,9 @@
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "regcoalescing"
#include "llvm/CodeGen/SimpleRegisterCoalescing.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "SimpleRegisterCoalescing.h"
#include "VirtRegMap.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/Value.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/CodeGen/LiveVariables.h"

View File

@ -56,6 +56,10 @@ namespace llvm {
///
SmallVector<std::pair<unsigned, unsigned>, 32> SubRegIdxes;
/// JoinedCopies - Keep track of copies eliminated due to coalescing.
///
SmallPtrSet<MachineInstr*, 32> JoinedCopies;
public:
static char ID; // Pass identifcation, replacement for typeid
SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {}