]> granicus.if.org Git - llvm/commit
Properly handle PHIs with subregisters in UnreachableBlockElim
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 28 Apr 2017 21:56:33 +0000 (21:56 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 28 Apr 2017 21:56:33 +0000 (21:56 +0000)
commit013513893fb02afe3321eddf4fa9989e3805a48d
tree25b77a407c7764fd91ca2d4eb249ceafe21c3dab
parent653d6365072ffb61bec379dae55e92c310fbef3d
Properly handle PHIs with subregisters in UnreachableBlockElim

When a PHI operand has a subregister, create a COPY instead of simply
replacing the PHI output with the input it.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/UnreachableBlockElim.cpp
test/CodeGen/Hexagon/unreachable-mbb-phi-subreg.mir [new file with mode: 0644]