AMDGPU/GFX10: Fix NSA reassign pass when operands are undef
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 1 Feb 2020 14:12:24 +0000 (15:12 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 1 Feb 2020 21:41:40 +0000 (22:41 +0100)
commitba8110161dfb096bbc63039afd87ff6417328f91
treef24e40de17316f18c6863563b2e1f2688ee7801e
parent268e57bd35d7e05928820ad90f325e19e7a809d0
AMDGPU/GFX10: Fix NSA reassign pass when operands are undef

Summary:
Virtual registers that are undef have an empty LiveInterval at this
point, which means beginIndex() and endIndex() cannot be used. We
only need those indices to determine the range in which to scan for
affected other NSA instructions, and undef operands cannot contribute
to that range.

Reviewers: arsenm, rampitec, mareko

Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73831
llvm/lib/Target/AMDGPU/GCNNSAReassign.cpp
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.nsa.ll