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