[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)
commit7012c246c10b456ee0b317b41d04c7addc3eb35b
tree807b339fe611f9e3bf39afda154ccd72e65a4c41
parent1e6a01fc87164fbcb6d73187ea9e3bd212f2df45
[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

llvm-svn: 332166
llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
llvm/test/CodeGen/AMDGPU/schedule-regpressure-limit3.ll [new file with mode: 0644]