AMDGPU: Move hazard avoidance out of waitcnt pass.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Nov 2017 21:35:32 +0000 (21:35 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Nov 2017 21:35:32 +0000 (21:35 +0000)
commita41351e37c72c86c0547a74166712d023dd076b0
tree838f31d0d67836cebe3f12ee9415bbe314011fe0
parentc0a81071d3d89c4e07f0ef39f5bb96eb9e6df76b
AMDGPU: Move hazard avoidance out of waitcnt pass.

This is mostly moving VMEM clause breaking into
the hazard recognizer. Also move another hazard
currently handled in the waitcnt pass.

Also stops breaking clauses unless xnack is enabled.

llvm-svn: 318557
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
llvm/test/CodeGen/AMDGPU/break-vmem-soft-clauses.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/inserted-wait-states.mir
llvm/test/CodeGen/AMDGPU/sendmsg-m0-hazard.mir [new file with mode: 0644]