summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/RDFLiveness.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-01-30 16:20:30 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-01-30 16:20:30 +0000
commitb561cf953ab13c6bbc6e93e46f34336eff381211 (patch)
treefc351e09e39de5197026a940fb697159db23708a /llvm/lib/Target/Hexagon/RDFLiveness.cpp
parentf8dc2d8c8b0d2c320fc85bd73f3ae96552dafbfd (diff)
downloadbcm5719-llvm-b561cf953ab13c6bbc6e93e46f34336eff381211.tar.gz
bcm5719-llvm-b561cf953ab13c6bbc6e93e46f34336eff381211.zip
[RDF] Add phis for entry block live-ins (in addition to function live-ins)
llvm-svn: 293491
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFLiveness.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/RDFLiveness.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFLiveness.cpp b/llvm/lib/Target/Hexagon/RDFLiveness.cpp
index f0f93285254..4b9dea08173 100644
--- a/llvm/lib/Target/Hexagon/RDFLiveness.cpp
+++ b/llvm/lib/Target/Hexagon/RDFLiveness.cpp
@@ -684,9 +684,7 @@ void Liveness::computeLiveIns() {
traverse(&MF.front(), LiveIn);
// Add function live-ins to the live-in set of the function entry block.
- auto &EntryIn = LiveMap[&MF.front()];
- for (auto I = MRI.livein_begin(), E = MRI.livein_end(); I != E; ++I)
- EntryIn.insert(RegisterRef(I->first));
+ LiveMap[&MF.front()].insert(DFG.getLiveIns());
if (Trace) {
// Dump the liveness map
OpenPOWER on IntegriCloud