summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-06-09 09:07:30 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-06-09 09:07:30 +0000
commit5f337149fab66da3ad5816a2ada5437e13165765 (patch)
treea62c953dab123cf301e2601155bbc8c5bb95bc3d /llvm/lib/CodeGen
parent0d20969deaf9cf3060f2cf641eb2870c5634d1b2 (diff)
downloadbcm5719-llvm-5f337149fab66da3ad5816a2ada5437e13165765.tar.gz
bcm5719-llvm-5f337149fab66da3ad5816a2ada5437e13165765.zip
Use for-range loop. NFCI.
llvm-svn: 362897
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index c4068303ee8..cfd7c0d77a6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -4663,9 +4663,7 @@ bool DAGCombiner::SearchForAndLoads(SDNode *N,
SDNode *&NodeToMask) {
// Recursively search for the operands, looking for loads which can be
// narrowed.
- for (unsigned i = 0, e = N->getNumOperands(); i < e; ++i) {
- SDValue Op = N->getOperand(i);
-
+ for (SDValue Op : N->op_values()) {
if (Op.getValueType().isVector())
return false;
OpenPOWER on IntegriCloud