[llvm] r327784 - [TableGen] Move some variables into for loop declaration. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 18 01:38:02 PDT 2018
Author: ctopper
Date: Sun Mar 18 01:38:02 2018
New Revision: 327784
URL: http://llvm.org/viewvc/llvm-project?rev=327784&view=rev
Log:
[TableGen] Move some variables into for loop declaration. NFC
They aren't needed after the loop.
Modified:
llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.cpp?rev=327784&r1=327783&r2=327784&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.cpp Sun Mar 18 01:38:02 2018
@@ -764,8 +764,7 @@ void CodeGenSchedModels::createInstRWCla
}
// For each set of Instrs, create a new class if necessary, and map or remap
// the Instrs to it.
- unsigned CIdx = 0, CEnd = ClassInstrs.size();
- for (; CIdx != CEnd; ++CIdx) {
+ for (unsigned CIdx = 0, CEnd = ClassInstrs.size(); CIdx != CEnd; ++CIdx) {
unsigned OldSCIdx = ClassInstrs[CIdx].first;
ArrayRef<Record*> InstDefs = ClassInstrs[CIdx].second;
// If the all instrs in the current class are accounted for, then leave
More information about the llvm-commits
mailing list