]> granicus.if.org Git - llvm/commit
[AMDGPU] Fix crash in phi-elimination hook.
authorMichael Liao <michael.hliao@gmail.com>
Wed, 11 Sep 2019 19:55:20 +0000 (19:55 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Wed, 11 Sep 2019 19:55:20 +0000 (19:55 +0000)
commit263e402d9876fdd6dc0c644486c4ddeb8f41b987
tree7d03f0b60acab3fd46168b2a41823db078ec6d6a
parent3c35443b87082585bbb3ffd04778ea217e9ca791
[AMDGPU] Fix crash in phi-elimination hook.

Summary: - Pre-check in case there's just a single PHI insn.

Reviewers: alex-t, rampitec, arsenm

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371649 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/phi-elimination-assertion.mir