[AMDGPU] Fix incorrect register pressure calculation
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 11 May 2017 17:16:55 +0000 (17:16 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 11 May 2017 17:16:55 +0000 (17:16 +0000)
commit33a97ec4ed4e5a2e49823ce1a690e26ace7b72da
treecda1cce4221ce67795639c76ec7d4abe7623134f
parent0aca09fc6cdcda65a44dc084b20d7056912977ef
[AMDGPU] Fix incorrect register pressure calculation

Earlier fix D32572 introduced a bug where live-ins were calculated
for basic block instead of scheduling region. This change fixes it.

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

llvm-svn: 302812
llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp