AMDGPU/SI: Don't fix a PHI under uniform branch in SIFixSGPRCopies only when sources...
authorChangpeng Fang <changpeng.fang@gmail.com>
Thu, 3 Aug 2017 16:37:02 +0000 (16:37 +0000)
committerChangpeng Fang <changpeng.fang@gmail.com>
Thu, 3 Aug 2017 16:37:02 +0000 (16:37 +0000)
commitef4dbb46daf007bd1357ef3bc1ae95a40956a360
tree5e4f57f193b470d15f74eac06bdb899f6c78d5da
parent6c2ded879d0f8e33743213696330b086969106eb
AMDGPU/SI: Don't fix a PHI under uniform branch in SIFixSGPRCopies only when sources and destination are all sgprs

Summary:
  If a PHI has at lease one VGPR operand, we have to fix the PHI
in SIFixSGPRCopies.

Reviewer:
  Matt

Differential Revision:
  http://reviews.llvm.org/D34727

llvm-svn: 309959
llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
llvm/test/CodeGen/AMDGPU/uniform-cfg.ll