[llvm] r362897 - Use for-range loop. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 02:07:30 PDT 2019
Author: rksimon
Date: Sun Jun 9 02:07:30 2019
New Revision: 362897
URL: http://llvm.org/viewvc/llvm-project?rev=362897&view=rev
Log:
Use for-range loop. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=362897&r1=362896&r2=362897&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sun Jun 9 02:07:30 2019
@@ -4663,9 +4663,7 @@ bool DAGCombiner::SearchForAndLoads(SDNo
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;
More information about the llvm-commits
mailing list