[RDF] Add option to keep dead phi nodes in DFG
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 28 Apr 2016 20:17:06 +0000 (20:17 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 28 Apr 2016 20:17:06 +0000 (20:17 +0000)
commit55874cf02b40eaaf6b14ed1baec2fac9fe89390e
tree499aaef5bfd550cefd80e589f4c09d7140eeab87
parent6cd5364556bad206ef922f1fe7ed84101ef44159
[RDF] Add option to keep dead phi nodes in DFG

Dead phi nodes are needed for code motion (such as copy propagation),
where a new use would be placed in a location that would be dominated
by a dead phi. Such a transformation is not legal for copy propagation,
and the existence of the phi would prevent it, but if the phi is not
there, it may appear to be valid.

llvm-svn: 267932
llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
llvm/lib/Target/Hexagon/RDFGraph.cpp
llvm/lib/Target/Hexagon/RDFGraph.h