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 bd15595 commit 2461bc1Copy full SHA for 2461bc1
llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h
@@ -210,11 +210,10 @@ void GenericConvergenceVerifier<ContextT>::verify(const DominatorTreeT &DT) {
210
// Propagate token liveness
211
for (auto *Succ : successors(BB)) {
212
auto *SuccNode = DT.getNode(Succ);
213
- auto LTIt = LiveTokenMap.find(Succ);
214
- if (LTIt == LiveTokenMap.end()) {
+ auto [LTIt, Inserted] = LiveTokenMap.try_emplace(Succ);
+ if (Inserted) {
215
// We're the first predecessor: all tokens which dominate the
216
// successor are live for now.
217
- LTIt = LiveTokenMap.try_emplace(Succ).first;
218
for (auto LiveToken : LiveTokens) {
219
if (!DT.dominates(DT.getNode(LiveToken->getParent()), SuccNode))
220
break;
0 commit comments