[PATCH] D32682: Refactoring with range-based for, NFC

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 08:30:11 PDT 2017


kparzysz added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp:750
     SDNode *ImmGUser = Glue->getGluedUser();
-    for (SDNode::use_iterator ui = Glue->use_begin(), ue = Glue->use_end();
-         ui != ue; ++ui)
+    for (auto ui = Glue->use_begin(), ue = Glue->use_end(); ui != ue; ++ui)
       if (*ui == ImmGUser)
----------------
Same here: `for (const SDNode *U : Glue->uses())`.


https://reviews.llvm.org/D32682





More information about the llvm-commits mailing list