This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix assert in scheduler
ClosedPublic

Authored by kzhuravl on Apr 26 2017, 4:33 PM.

Details

Summary

Assert is triggered if DBG_VALUE is first instruction in BB

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Apr 26 2017, 4:33 PM
rampitec added inline comments.Apr 26 2017, 4:36 PM
lib/Target/AMDGPU/GCNSchedStrategy.cpp
426 ↗(On Diff #96848)

I believe you need to skip it, not ignore the whole block.

arsenm added inline comments.Apr 26 2017, 4:38 PM
lib/Target/AMDGPU/GCNSchedStrategy.cpp
426 ↗(On Diff #96848)

I think you just want getFirstNonDebugInstr instead of begin later

kzhuravl updated this revision to Diff 96850.Apr 26 2017, 4:43 PM

Upload the right diff.

kzhuravl updated this revision to Diff 96851.Apr 26 2017, 4:44 PM

Oops. upload the right diff again.

kzhuravl marked 2 inline comments as done.Apr 26 2017, 4:45 PM
rampitec accepted this revision.Apr 26 2017, 4:46 PM

LGTM.

This revision is now accepted and ready to land.Apr 26 2017, 4:46 PM
This revision was automatically updated to reflect the committed changes.