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 d204724 commit 3ce96b9Copy full SHA for 3ce96b9
llvm/lib/Analysis/DependenceGraphBuilder.cpp
@@ -240,9 +240,7 @@ template <class G> void AbstractDependenceGraphBuilder<G>::createDefUseEdges() {
240
Instruction *UI = dyn_cast<Instruction>(U);
241
if (!UI)
242
continue;
243
- NodeType *DstNode = nullptr;
244
- if (IMap.find(UI) != IMap.end())
245
- DstNode = IMap.find(UI)->second;
+ NodeType *DstNode = IMap.lookup(UI);
246
247
// In the case of loops, the scope of the subgraph is all the
248
// basic blocks (and instructions within them) belonging to the loop. We
0 commit comments