projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use a random type for the select condition,
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineLoopInfo.cpp
diff --git
a/lib/CodeGen/MachineLoopInfo.cpp
b/lib/CodeGen/MachineLoopInfo.cpp
index d134357d2af9eff96d9ea919ffc91e486e711132..68ddb7b3f47311b592fcb4844b084948c534c205 100644
(file)
--- a/
lib/CodeGen/MachineLoopInfo.cpp
+++ b/
lib/CodeGen/MachineLoopInfo.cpp
@@
-16,7
+16,7
@@
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
-
+#include "llvm/CodeGen/Passes.h"
using namespace llvm;
TEMPLATE_INSTANTIATION(class LoopBase<MachineBasicBlock>);
using namespace llvm;
TEMPLATE_INSTANTIATION(class LoopBase<MachineBasicBlock>);
@@
-26,6
+26,8
@@
char MachineLoopInfo::ID = 0;
static RegisterPass<MachineLoopInfo>
X("machine-loops", "Machine Natural Loop Construction", true);
static RegisterPass<MachineLoopInfo>
X("machine-loops", "Machine Natural Loop Construction", true);
+const PassInfo *const llvm::MachineLoopInfoID = &X;
+
bool MachineLoopInfo::runOnMachineFunction(MachineFunction &) {
releaseMemory();
LI->Calculate(getAnalysis<MachineDominatorTree>().getBase()); // Update
bool MachineLoopInfo::runOnMachineFunction(MachineFunction &) {
releaseMemory();
LI->Calculate(getAnalysis<MachineDominatorTree>().getBase()); // Update
@@
-36,6
+38,3
@@
void MachineLoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<MachineDominatorTree>();
}
AU.setPreservesAll();
AU.addRequired<MachineDominatorTree>();
}
-
-// Ensure this file gets linked when MachineLoopInfo.h is used.
-DEFINING_FILE_FOR(MachineLoopInfo)