Skip to content

Commit 9dbfd58

Browse files
committed
[CodeLayout] CDSortImpl: remove two conditions that cannot trigger. NFC
1 parent 53c81a8 commit 9dbfd58

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Transforms/Utils/CodeLayout.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,13 +1139,6 @@ class CDSortImpl {
11391139
// Extract the best (top) edge for merging.
11401140
ChainEdge *BestEdge = *Queue.begin();
11411141
Queue.erase(Queue.begin());
1142-
// Ignore self-edges.
1143-
if (BestEdge->isSelfEdge())
1144-
continue;
1145-
// Ignore edges with non-positive gains.
1146-
if (BestEdge->gain() <= EPS)
1147-
continue;
1148-
11491142
ChainT *BestSrcChain = BestEdge->srcChain();
11501143
ChainT *BestDstChain = BestEdge->dstChain();
11511144

0 commit comments

Comments
 (0)