projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set REQUIRES shell on the test cases for r186044
[oota-llvm.git]
/
lib
/
CodeGen
/
LiveStackAnalysis.cpp
diff --git
a/lib/CodeGen/LiveStackAnalysis.cpp
b/lib/CodeGen/LiveStackAnalysis.cpp
index c75196a472100679f7b24ee6936fb92f2297caca..be11a8fa86ef6452b551a6f5fca88491fc160236 100644
(file)
--- a/
lib/CodeGen/LiveStackAnalysis.cpp
+++ b/
lib/CodeGen/LiveStackAnalysis.cpp
@@
-15,17
+15,20
@@
#define DEBUG_TYPE "livestacks"
#include "llvm/CodeGen/LiveStackAnalysis.h"
#define DEBUG_TYPE "livestacks"
#include "llvm/CodeGen/LiveStackAnalysis.h"
+#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/Passes.h"
-#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/
ADT/Statistic
.h"
+#include "llvm/
Target/TargetRegisterInfo
.h"
#include <limits>
using namespace llvm;
char LiveStacks::ID = 0;
#include <limits>
using namespace llvm;
char LiveStacks::ID = 0;
-INITIALIZE_PASS(LiveStacks, "livestacks",
+INITIALIZE_PASS_BEGIN(LiveStacks, "livestacks",
+ "Live Stack Slot Analysis", false, false)
+INITIALIZE_PASS_DEPENDENCY(SlotIndexes)
+INITIALIZE_PASS_END(LiveStacks, "livestacks",
"Live Stack Slot Analysis", false, false)
char &llvm::LiveStacksID = LiveStacks::ID;
"Live Stack Slot Analysis", false, false)
char &llvm::LiveStacksID = LiveStacks::ID;
@@
-44,7
+47,8
@@
void LiveStacks::releaseMemory() {
S2RCMap.clear();
}
S2RCMap.clear();
}
-bool LiveStacks::runOnMachineFunction(MachineFunction &) {
+bool LiveStacks::runOnMachineFunction(MachineFunction &MF) {
+ TRI = MF.getTarget().getRegisterInfo();
// FIXME: No analysis is being done right now. We are relying on the
// register allocators to provide the information.
return false;
// FIXME: No analysis is being done right now. We are relying on the
// register allocators to provide the information.
return false;
@@
-61,7
+65,7
@@
LiveStacks::getOrCreateInterval(int Slot, const TargetRegisterClass *RC) {
} else {
// Use the largest common subclass register class.
const TargetRegisterClass *OldRC = S2RCMap[Slot];
} else {
// Use the largest common subclass register class.
const TargetRegisterClass *OldRC = S2RCMap[Slot];
- S2RCMap[Slot] = getCommonSubClass(OldRC, RC);
+ S2RCMap[Slot] =
TRI->
getCommonSubClass(OldRC, RC);
}
return I->second;
}
}
return I->second;
}