diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-06-26 19:18:49 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-06-26 19:18:49 +0000 |
commit | 9271ccc3459c8f449ccfd705fac924cb5d568476 (patch) | |
tree | 95bd2d15d4dcf0fdba65e954303bbf3562de6a5b /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | |
parent | 1ac144b51b4961292c8d5d240e0837c2b2ca4475 (diff) | |
download | bcm5719-llvm-9271ccc3459c8f449ccfd705fac924cb5d568476.tar.gz bcm5719-llvm-9271ccc3459c8f449ccfd705fac924cb5d568476.zip |
Convert a bunch of loops to foreach. NFC.
This uses the new SDNode::op_values() iterator range committed in r240805.
llvm-svn: 240817
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 61a3fd72871..00cbae3986c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -227,8 +227,7 @@ SUnit *ScheduleDAGFast::CopyAndMoveSuccessors(SUnit *SU) { else if (VT == MVT::Other) TryUnfold = true; } - for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) { - const SDValue &Op = N->getOperand(i); + for (const SDValue &Op : N->op_values()) { MVT VT = Op.getNode()->getSimpleValueType(Op.getResNo()); if (VT == MVT::Glue) return nullptr; |