AMDGPU/SI: Only look at live out SGPR defs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 15 Aug 2015 02:58:49 +0000 (02:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 15 Aug 2015 02:58:49 +0000 (02:58 +0000)
commit0c2192db7bfa1a8255009a8aea2b6ebd218a8c3c
treea393e58f17cc1b0e14c0f26e5b74bce29e4932e3
parentde17e7736f6ca8c708acfcc297a466e786f38833
AMDGPU/SI: Only look at live out SGPR defs

When trying to fix SGPR live ranges, skip defs that are
killed in the same block as the def. I don't think
we need to worry about these cases as long as the
live ranges of the SGPRs in dominating blocks are
correct.

This reduces the number of elements the second
loop over the function needs to look at, and makes
it generally easier to understand. The second loop
also only considers if the live range is live
in to a block, which logically means it
must have been live out from another.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245150 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp