[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:26:40 PDT 2017
kparzysz added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp:495
}
- for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
- I != E; ++I) {
+ for (auto I = SU->Preds.begin(), E = SU->Preds.end(); I != E; ++I) {
if (I->isCtrl() || (I->getSUnit()->NumRegDefsLeft == 0))
----------------
This could also be a range-for.
https://reviews.llvm.org/D32682
More information about the llvm-commits
mailing list