summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-10-22 22:56:20 +0000
committerattilio <attilio@FreeBSD.org>2011-10-22 22:56:20 +0000
commit4be1d1f7d25274261562ad10fb8197d48da0d113 (patch)
treea5939a4eeef7c173fb98194a6a23499c9b5a561d /contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
parent62842622e5f4dd7e394cb2530b955c9818aaeec0 (diff)
parentd5b30f0715769670b0cb9e859e79e85cc990f441 (diff)
downloadFreeBSD-src-4be1d1f7d25274261562ad10fb8197d48da0d113.zip
FreeBSD-src-4be1d1f7d25274261562ad10fb8197d48da0d113.tar.gz
MFC
Diffstat (limited to 'contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r--contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 446adfc..34b8ab0 100644
--- a/contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/contrib/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -36,7 +36,7 @@ ScheduleDAGInstrs::ScheduleDAGInstrs(MachineFunction &mf,
const MachineDominatorTree &mdt)
: ScheduleDAG(mf), MLI(mli), MDT(mdt), MFI(mf.getFrameInfo()),
InstrItins(mf.getTarget().getInstrItineraryData()),
- Defs(TRI->getNumRegs()), Uses(TRI->getNumRegs()),
+ Defs(TRI->getNumRegs()), Uses(TRI->getNumRegs()),
LoopRegs(MLI, MDT), FirstDbgValue(0) {
DbgValues.clear();
}
@@ -134,6 +134,7 @@ static const Value *getUnderlyingObjectForInstr(const MachineInstr *MI,
}
void ScheduleDAGInstrs::StartBlock(MachineBasicBlock *BB) {
+ LoopRegs.Deps.clear();
if (MachineLoop *ML = MLI.getLoopFor(BB))
if (BB == ML->getLoopLatch()) {
MachineBasicBlock *Header = ML->getHeader();
OpenPOWER on IntegriCloud