summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-01-23 16:04:53 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-01-23 16:04:53 +0000
commit8b7454a8dd9ff87bda73068db6d669a6a4903021 (patch)
treec40e805e872cbc31b3983df5a4c5ae3f89b5476a /llvm/lib/CodeGen/MachineScheduler.cpp
parentc58c2b5c9b8767a92338301100d4502041bfa9fe (diff)
downloadbcm5719-llvm-8b7454a8dd9ff87bda73068db6d669a6a4903021.tar.gz
bcm5719-llvm-8b7454a8dd9ff87bda73068db6d669a6a4903021.zip
CodeGen: Fix assertion in ScheduleDAGMILive::scheduleMI due to llvm.dbg.value
Fix a bug in ScheduleDAGMILive::scheduleMI which causes BotRPTracker not tracking CurrentBottom in some rare cases involving llvm.dbg.value. This issues causes amdgcn target to assert when compiling some user codes with -g. Differential Revision: https://reviews.llvm.org/D42394 llvm-svn: 323214
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index e15eb658a05..f37479ea964 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -1449,6 +1449,7 @@ void ScheduleDAGMILive::scheduleMI(SUnit *SU, bool IsTopNode) {
}
moveInstruction(MI, CurrentBottom);
CurrentBottom = MI;
+ BotRPTracker.setPos(CurrentBottom);
}
if (ShouldTrackPressure) {
RegisterOperands RegOpers;
OpenPOWER on IntegriCloud