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 3d15bfb commit 6a5a795Copy full SHA for 6a5a795
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