diff options
author | Austin Kerbow <Austin.Kerbow@amd.com> | 2019-10-15 19:59:45 +0000 |
---|---|---|
committer | Austin Kerbow <Austin.Kerbow@amd.com> | 2019-10-15 19:59:45 +0000 |
commit | 527e9f9a3f939b2fdb296da9e0e7bbe79b8f4a44 (patch) | |
tree | 924168cec9798309d15707085711ece42b997ce5 /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestRunCommandInterpreterAPI.py | |
parent | d498d606b98179f96b33683e296f8c09568028bd (diff) | |
download | bcm5719-llvm-527e9f9a3f939b2fdb296da9e0e7bbe79b8f4a44.tar.gz bcm5719-llvm-527e9f9a3f939b2fdb296da9e0e7bbe79b8f4a44.zip |
AMDGPU: Fix infinite searches in SIFixSGPRCopies
Summary:
Two conditions could lead to infinite loops when processing PHI nodes in
SIFixSGPRCopies.
The first condition involves a REG_SEQUENCE that uses registers defined by both
a PHI and a COPY.
The second condition arises when a physical register is copied to a virtual
register which is then used in a PHI node. If the same virtual register is
copied to the same physical register, the result is an endless loop.
%0:sgpr_64 = COPY $sgpr0_sgpr1
%2 = PHI %0, %bb.0, %1, %bb.1
$sgpr0_sgpr1 = COPY %0
Reviewers: alex-t, rampitec, arsenm
Reviewed By: rampitec
Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68970
llvm-svn: 374944
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestRunCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions