OSDN Git Service

[AMDGPU] Fix amdgpu-waves-per-eu accounting in scheduler
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Sat, 12 May 2018 01:41:56 +0000 (01:41 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Sat, 12 May 2018 01:41:56 +0000 (01:41 +0000)
commitcf1a1cbbf127116e358d7ce0cc115fb71553d1e6
treeb957ee26d37290e5d35ba6af0881c35182b338a3
parent7e911dad6c82f5daff75c9752d66c704360b455a
[AMDGPU] Fix amdgpu-waves-per-eu accounting in scheduler

We cannot query this attribute from a subtarget given a machine function.
At this point attribute itself is already unavailable and can only be
obtained through MFI.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/GCNIterativeScheduler.cpp
lib/Target/AMDGPU/GCNSchedStrategy.cpp
test/CodeGen/AMDGPU/schedule-regpressure-limit3.ll [new file with mode: 0644]