Tail duplication can mix incompatible registers in phi nodes
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 21 Oct 2015 02:40:06 +0000 (02:40 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 21 Oct 2015 02:40:06 +0000 (02:40 +0000)
commit813b365fd0cc3b916f02fc58f343dc404674a12d
treef6a8a4a8e919027ec5cdcaacf0b0b99974e5d3cc
parent3aa0189bfe3606c48af75cde04562f29273dfbcc
Tail duplication can mix incompatible registers in phi nodes

Do not tail duplicate blocks where the successor has a phi node,
and the corresponding value in that phi node uses a subregister.

http://reviews.llvm.org/D13922

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250877 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TailDuplication.cpp
test/CodeGen/Hexagon/tail-dup-subreg-abort.ll [new file with mode: 0644]