]> granicus.if.org Git - llvm/commit
AMDGPU: Make worst-case assumption about the wait states in inline assembly
authorNicolai Haehnle <nhaehnle@gmail.com>
Wed, 6 Sep 2017 13:50:13 +0000 (13:50 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Wed, 6 Sep 2017 13:50:13 +0000 (13:50 +0000)
commitadf1cb63f21124b3bef5c0f9da24f72653a75d68
treea6fe65bdf043d686dd486db3499dfb840ecacfba
parent3017f27ac3ee9847d27e1cec12cee5da0cce872b
AMDGPU: Make worst-case assumption about the wait states in inline assembly

Summary:
Mesa still uses a hack where empty inline assembly is used as a kind of
optimization barrier. This exposed a problem where not enough wait states
were inserted, because the hazard recognizer implicitly assumed that each
inline assembly "instruction" has at least one wait state.

Reviewers: arsenm

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

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

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