We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4aea13 commit 44b9f5eCopy full SHA for 44b9f5e
llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
@@ -600,12 +600,12 @@ class MemLocFragmentFill {
600
break;
601
}
602
603
- auto CurrentLiveInEntry = LiveIn.find(&BB);
604
// If there's no LiveIn entry for the block yet, add it.
605
- if (CurrentLiveInEntry == LiveIn.end()) {
+ auto [CurrentLiveInEntry, Inserted] = LiveIn.try_emplace(&BB);
+ if (Inserted) {
606
LLVM_DEBUG(dbgs() << "change=true (first) on meet on " << BB.getName()
607
<< "\n");
608
- LiveIn[&BB] = std::move(BBLiveIn);
+ CurrentLiveInEntry->second = std::move(BBLiveIn);
609
return /*Changed=*/true;
610
611
0 commit comments