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 d096f45 commit 44b61e0Copy full SHA for 44b61e0
llvm/lib/Analysis/PhiValues.cpp
@@ -67,8 +67,10 @@ void PhiValues::processPhi(const PHINode *Phi,
67
}
68
// If the phi did not become part of a component then this phi and that
69
// phi are part of the same component, so adjust the depth number.
70
- if (!ReachableMap.count(OpDepthNumber))
71
- DepthMap[Phi] = std::min(DepthMap[Phi], OpDepthNumber);
+ if (!ReachableMap.count(OpDepthNumber)) {
+ unsigned &Depth = DepthMap[Phi];
72
+ Depth = std::min(Depth, OpDepthNumber);
73
+ }
74
} else {
75
TrackedValues.insert(PhiValuesCallbackVH(PhiOp, this));
76
0 commit comments