diff options
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 5e01c29..b0975df 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -8371,7 +8371,7 @@ ScalarEvolution::getPredicatedBackedgeTakenInfo(const Loop *L) { if (BTI.hasFullInfo()) return BTI; - auto Pair = PredicatedBackedgeTakenCounts.insert({L, BackedgeTakenInfo()}); + auto Pair = PredicatedBackedgeTakenCounts.try_emplace(L); if (!Pair.second) return Pair.first->second; @@ -8390,7 +8390,7 @@ ScalarEvolution::getBackedgeTakenInfo(const Loop *L) { // code elsewhere that it shouldn't attempt to request a new // backedge-taken count, which could result in infinite recursion. std::pair<DenseMap<const Loop *, BackedgeTakenInfo>::iterator, bool> Pair = - BackedgeTakenCounts.insert({L, BackedgeTakenInfo()}); + BackedgeTakenCounts.try_emplace(L); if (!Pair.second) return Pair.first->second; |