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 9825d1f commit 71a39ecCopy full SHA for 71a39ec
mlir/lib/Dialect/MLProgram/Transforms/PipelineGlobalOps.cpp
@@ -100,10 +100,8 @@ LogicalResult MLProgramPipelineGlobals::buildGlobalMap(ModuleOp module) {
100
for (size_t i = 0; i < work.size(); ++i) {
101
callableMap[work[i]]->walk([&](CallOpInterface call) {
102
auto symbol = dyn_cast<SymbolRefAttr>(call.getCallableForCallee());
103
- if (!visited.contains(symbol)) {
104
- visited.insert(symbol);
+ if (visited.insert(symbol).second)
105
work.push_back(symbol);
106
- }
107
});
108
109
for (auto load : opLoadSymbols[work[i]])
0 commit comments