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 78028ad commit b27f1eeCopy full SHA for b27f1ee
llvm/lib/Transforms/Utils/CodeLayout.cpp
@@ -227,6 +227,7 @@ struct NodeT {
227
228
// Check if Other is a successor of the node.
229
bool isSuccessor(const NodeT *Other) const;
230
+
231
// The total execution count of outgoing jumps.
232
uint64_t outCount() const;
233
@@ -449,10 +450,9 @@ struct ChainEdge {
449
450
};
451
452
bool NodeT::isSuccessor(const NodeT *Other) const {
- for (JumpT *Jump : OutJumps) {
453
+ for (JumpT *Jump : OutJumps)
454
if (Jump->Target == Other)
455
return true;
- }
456
return false;
457
}
458
0 commit comments