This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Simplify test and extend to gfx9 and gfx10
ClosedPublic

Authored by foad on Nov 26 2019, 1:48 AM.

Details

Summary

This is in preparation for adding more test cases for D69661 and other
bug fixes in the same area.

Diff Detail

Event Timeline

foad created this revision.Nov 26 2019, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2019, 1:48 AM
Herald added subscribers: t-tye, yaxunl, wdng and 2 others. · View Herald Transcript
arsenm added inline comments.Dec 2 2019, 7:54 AM
llvm/test/CodeGen/AMDGPU/vccz-corrupt-bug-workaround.mir
60

Losing tracksRegLiveness seem like a problem, since this is a case where you're using reg liveness (along with the loss of the liveins lists)

foad marked an inline comment as done.Dec 3 2019, 5:50 AM
foad added inline comments.
llvm/test/CodeGen/AMDGPU/vccz-corrupt-bug-workaround.mir
60

I can put tracksRegLiveness back in of course, but are you saying the insert waitcnts pass depends on liveness? I wasn't aware of that.

arsenm added inline comments.Jan 22 2020, 8:46 AM
llvm/test/CodeGen/AMDGPU/vccz-corrupt-bug-workaround.mir
60

It has to check if vccz is live out for example. Not tracking liveness at any point is just insane

foad updated this revision to Diff 240602.Jan 27 2020, 8:16 AM

Track liveness.

arsenm accepted this revision.Jan 27 2020, 8:31 AM
arsenm added inline comments.
llvm/test/CodeGen/AMDGPU/vccz-corrupt-bug-workaround.mir
15

vcc doesn't need to be live in here

This revision is now accepted and ready to land.Jan 27 2020, 8:31 AM
This revision was automatically updated to reflect the committed changes.

Unit tests: pass. 62213 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.