diff options
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFGraph.cpp')
-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) { |