From 8bb30184a8bd735ee6bfad7e30dbc6684aee65ed Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 5 Nov 2007 17:41:38 +0000 Subject: [PATCH] Move SimpleRegisterCoalescing.h to lib/CodeGen since there is now a common register coalescer interface: RegisterCoalescing. llvm-svn: 43714 --- llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 4 ++-- llvm/{include/llvm => lib}/CodeGen/SimpleRegisterCoalescing.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) rename llvm/{include/llvm => lib}/CodeGen/SimpleRegisterCoalescing.h (98%) diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 9993b633ada2..c02770a65fd4 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -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" diff --git a/llvm/include/llvm/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h similarity index 98% rename from llvm/include/llvm/CodeGen/SimpleRegisterCoalescing.h rename to llvm/lib/CodeGen/SimpleRegisterCoalescing.h index b84781b15cb5..0f0d020f79d6 100644 --- a/llvm/include/llvm/CodeGen/SimpleRegisterCoalescing.h +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h @@ -56,6 +56,10 @@ namespace llvm { /// SmallVector, 32> SubRegIdxes; + /// JoinedCopies - Keep track of copies eliminated due to coalescing. + /// + SmallPtrSet JoinedCopies; + public: static char ID; // Pass identifcation, replacement for typeid SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {}