OSDN Git Service

AMDGPU: Force skip over SMRD, VMEM and s_waitcnt instructions
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 17 Apr 2019 16:31:52 +0000 (16:31 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 17 Apr 2019 16:31:52 +0000 (16:31 +0000)
commit788a809b3cd4a32ce1340e4dd64d978a2891a9ee
treed1f6f35715d2e826659040e2cd73ef8515b1b5c6
parent78395fb2fe1a0fde544b3d8b31405d9df3afe2ad
AMDGPU: Force skip over SMRD, VMEM and s_waitcnt instructions

Summary: This fixes a large Dawn of War 3 performance regression with RADV from Mesa 19.0 to master which was caused by creating less code in some branches.

Reviewers: arsen, nhaehnle

Reviewed By: nhaehnle

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInsertSkips.cpp
test/CodeGen/AMDGPU/collapse-endcf.ll
test/CodeGen/AMDGPU/skip-if-dead.ll
test/CodeGen/AMDGPU/valu-i1.ll
test/CodeGen/AMDGPU/wqm.ll