summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ScheduleDAGInstrs.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-10-07 06:33:09 +0000
committerAndrew Trick <atrick@apple.com>2011-10-07 06:33:09 +0000
commite8deca83c157999062b4894163fd6b5023c5cf91 (patch)
tree591e252bc3bd943e61f515231ad42c6cfcd13b27 /lib/CodeGen/ScheduleDAGInstrs.h
parent4563bbaba7fad4403acf0236cbd75805c68f2a90 (diff)
downloadllvm-e8deca83c157999062b4894163fd6b5023c5cf91.tar.gz
llvm-e8deca83c157999062b4894163fd6b5023c5cf91.tar.bz2
llvm-e8deca83c157999062b4894163fd6b5023c5cf91.tar.xz
PostRA scheduler fix. Clear stale loop dependencies.
Fixes <rdar://problem/10235725> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.h')
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.h b/lib/CodeGen/ScheduleDAGInstrs.h
index 6e672f4b72..666bdf548c 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.h
+++ b/lib/CodeGen/ScheduleDAGInstrs.h
@@ -48,7 +48,8 @@ namespace llvm {
/// VisitLoop - Clear out any previous state and analyze the given loop.
///
void VisitLoop(const MachineLoop *Loop) {
- Deps.clear();
+ assert(Deps.empty() && "stale loop dependencies");
+
MachineBasicBlock *Header = Loop->getHeader();
SmallSet<unsigned, 8> LoopLiveIns;
for (MachineBasicBlock::livein_iterator LI = Header->livein_begin(),