diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-02-22 18:27:36 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-02-22 18:27:36 +0000 |
| commit | ba36b92befa26029a10da57ce8c1936c2b9648a2 (patch) | |
| tree | d964fd81f625c2cd8241f1e9209ae21312cbf91a /llvm/lib | |
| parent | 5ddd2a5bdada3792380b1a87f8cb3b394be9860d (diff) | |
| download | bcm5719-llvm-ba36b92befa26029a10da57ce8c1936c2b9648a2.tar.gz bcm5719-llvm-ba36b92befa26029a10da57ce8c1936c2b9648a2.zip | |
[RDF] Only access block live-ins when tracking liveness
llvm-svn: 295855
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Hexagon/RDFGraph.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFGraph.cpp b/llvm/lib/Target/Hexagon/RDFGraph.cpp index d482db3adcd..2253969290b 100644 --- a/llvm/lib/Target/Hexagon/RDFGraph.cpp +++ b/llvm/lib/Target/Hexagon/RDFGraph.cpp @@ -907,8 +907,10 @@ void DataFlowGraph::build(unsigned Options) { assert(EntryB.pred_empty() && "Function entry block has predecessors"); for (auto I = MRI.livein_begin(), E = MRI.livein_end(); I != E; ++I) LiveIns.insert(RegisterRef(I->first)); - for (auto I : EntryB.liveins()) - LiveIns.insert(RegisterRef(I.PhysReg, I.LaneMask)); + if (MRI.tracksLiveness()) { + for (auto I : EntryB.liveins()) + LiveIns.insert(RegisterRef(I.PhysReg, I.LaneMask)); + } // Add function-entry phi nodes for the live-in registers. for (std::pair<RegisterId,LaneBitmask> P : LiveIns) { |

