summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-11-05 17:41:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-11-05 17:41:38 +0000
commit8bb30184a8bd735ee6bfad7e30dbc6684aee65ed (patch)
tree64c03588c70e39d6a433a72d64de237329c8d22b
parenta6d9f3c2cf0eddb941695fdeeac8a54bd57e17d8 (diff)
downloadbcm5719-llvm-8bb30184a8bd735ee6bfad7e30dbc6684aee65ed.tar.gz
bcm5719-llvm-8bb30184a8bd735ee6bfad7e30dbc6684aee65ed.zip
Move SimpleRegisterCoalescing.h to lib/CodeGen since there is now a common
register coalescer interface: RegisterCoalescing. llvm-svn: 43714
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp4
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.h (renamed from llvm/include/llvm/CodeGen/SimpleRegisterCoalescing.h)4
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 9993b633ada..c02770a65fd 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
index b84781b15cb..0f0d020f79d 100644
--- a/llvm/include/llvm/CodeGen/SimpleRegisterCoalescing.h
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
@@ -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) {}
OpenPOWER on IntegriCloud