Skip to content

Commit 24790a7

Browse files
[Hexagon] Use llvm::children (NFC)
1 parent 9b2c25c commit 24790a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,6 @@ bool HexagonEarlyIfConversion::visitBlock(MachineBasicBlock *B,
601601
// Visit all dominated blocks from the same loop first, then process B.
602602
MachineDomTreeNode *N = MDT->getNode(B);
603603

604-
using GTN = GraphTraits<MachineDomTreeNode *>;
605-
606604
// We will change CFG/DT during this traversal, so take precautions to
607605
// avoid problems related to invalidated iterators. In fact, processing
608606
// a child C of B cannot cause another child to be removed, but it can
@@ -611,7 +609,7 @@ bool HexagonEarlyIfConversion::visitBlock(MachineBasicBlock *B,
611609
// prior to processing B, so there is no need to process it again.
612610
// Simply keep a list of children of B, and traverse that list.
613611
using DTNodeVectType = SmallVector<MachineDomTreeNode *, 4>;
614-
DTNodeVectType Cn(GTN::child_begin(N), GTN::child_end(N));
612+
DTNodeVectType Cn(llvm::children<MachineDomTreeNode *>(N));
615613
for (auto &I : Cn) {
616614
MachineBasicBlock *SB = I->getBlock();
617615
if (!Deleted.count(SB))

0 commit comments

Comments
 (0)