[PATCH] D42394: CodeGen: Fix assertion in ScheduleDAGMILive::scheduleMI due to llvm.dbg.value

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 14:08:41 PST 2018


yaxunl created this revision.
yaxunl added reviewers: arsenm, rampitec.
Herald added subscribers: javed.absar, nhaehnle, wdng, MatzeB.

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.


https://reviews.llvm.org/D42394

Files:
  lib/CodeGen/MachineScheduler.cpp
  test/CodeGen/AMDGPU/debug-value2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42394.130957.patch
Type: text/x-patch
Size: 31714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180122/b3be2634/attachment.bin>


More information about the llvm-commits mailing list