OSDN Git Service

[AMDGPU] Prevent sequences of non-instructions disrupting GCNHazardRecognizer wait...
authorCarl Ritson <carl.ritson@amd.com>
Mon, 10 Sep 2018 10:14:48 +0000 (10:14 +0000)
committerCarl Ritson <carl.ritson@amd.com>
Mon, 10 Sep 2018 10:14:48 +0000 (10:14 +0000)
commita5defd3b7d382712c311fe3d5e34a280fa545bf2
tree22d49fe70ca8e2e03cbf1f4f9acd0323cd1312d4
parentaa81d565a9ff9d2fe5f4f4f810a66fcacead02c4
[AMDGPU] Prevent sequences of non-instructions disrupting GCNHazardRecognizer wait state counting

Summary:
This fixes a bug where a large number of implicit def instructions can fill the GCNHazardRecognizer lookahead buffer causing required NOPs to not be inserted.

Reviewers: nhaehnle, arsenm

Reviewed By: arsenm

Subscribers: sheredom, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D51726

Change-Id: Ie75338f94de704ee5816b05afd0c922c6748a95b

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/GCNHazardRecognizer.cpp
test/CodeGen/AMDGPU/hazard.mir