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.
2 parents 1dd7d0b + 6a5a795 commit 4e7a983Copy full SHA for 4e7a983
llvm/lib/Transforms/Coroutines/MaterializationUtils.cpp
@@ -81,9 +81,9 @@ struct RematGraph {
81
!Checker.isDefinitionAcrossSuspend(*D, FirstUse))
82
continue;
83
84
- if (Remats.count(D)) {
+ if (auto It = Remats.find(D); It != Remats.end()) {
85
// Already have this in the graph
86
- N->Operands.push_back(Remats[D].get());
+ N->Operands.push_back(It->second.get());
87
88
}
89
0 commit comments