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 ea0ecd6 commit e1e696dCopy full SHA for e1e696d
llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
@@ -1275,8 +1275,7 @@ bool StraightLineStrengthReduce::runOnFunction(Function &F) {
1275
// Build the dependency graph and sort candidate instructions from dependency
1276
// roots to leaves
1277
for (auto &C : Candidates) {
1278
- if (DependencyGraph.find(C.Ins) == DependencyGraph.end())
1279
- DependencyGraph[C.Ins] = {};
+ DependencyGraph.try_emplace(C.Ins);
1280
addDependency(C, C.Basis);
1281
}
1282
sortCandidateInstructions();
0 commit comments