[RDF] Fix liveness analysis for phi nodes with shadow uses
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 7 Sep 2016 20:37:05 +0000 (20:37 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 7 Sep 2016 20:37:05 +0000 (20:37 +0000)
commit2db0c8b75f3b2cf8f7db4c1f38578d35670bce68
treef8ac856b842d5456f2bcd91dbe4767ebb5601cad
parente7729c84681bf242b217d850803ae3ffe79834a9
[RDF] Fix liveness analysis for phi nodes with shadow uses

Shadow uses need to be analyzed together, since each individual shadow
will only have a partial reaching def. All shadows together may cover
a given register ref, while each individual shadow may not.

llvm-svn: 280855
llvm/lib/Target/Hexagon/RDFLiveness.cpp
llvm/lib/Target/Hexagon/RDFLiveness.h
llvm/test/CodeGen/Hexagon/rdf-phi-shadows.ll [new file with mode: 0644]