projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use DomTree in MachineSink to sink over diamonds.
[oota-llvm.git]
/
lib
/
CodeGen
/
ExecutionDepsFix.cpp
diff --git
a/lib/CodeGen/ExecutionDepsFix.cpp
b/lib/CodeGen/ExecutionDepsFix.cpp
index 9157d8a2abf4d6cabb0074d8319513016be732a8..3680498927effd4051e8d94f94e0126663571ac6 100644
(file)
--- a/
lib/CodeGen/ExecutionDepsFix.cpp
+++ b/
lib/CodeGen/ExecutionDepsFix.cpp
@@
-29,7
+29,6
@@
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
-#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetSubtargetInfo.h"
using namespace llvm;
#include "llvm/Target/TargetSubtargetInfo.h"
using namespace llvm;
@@
-715,13
+714,13
@@
void ExeDepsFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) {
MF = &mf;
bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) {
MF = &mf;
- TII = MF->get
Target().getSubtargetImpl()->
getInstrInfo();
- TRI = MF->get
Target().getSubtargetImpl()->
getRegisterInfo();
+ TII = MF->get
Subtarget().
getInstrInfo();
+ TRI = MF->get
Subtarget().
getRegisterInfo();
LiveRegs = nullptr;
assert(NumRegs == RC->getNumRegs() && "Bad regclass");
DEBUG(dbgs() << "********** FIX EXECUTION DEPENDENCIES: "
LiveRegs = nullptr;
assert(NumRegs == RC->getNumRegs() && "Bad regclass");
DEBUG(dbgs() << "********** FIX EXECUTION DEPENDENCIES: "
- <<
RC->getName(
) << " **********\n");
+ <<
TRI->getRegClassName(RC
) << " **********\n");
// If no relevant registers are used in the function, we can skip it
// completely.
// If no relevant registers are used in the function, we can skip it
// completely.