[TableGen] Use range based for loop. NFC

llvm-svn: 328034
This commit is contained in:
Craig Topper 2018-03-20 20:24:16 +00:00
parent 1f57456c78
commit f611425916
1 changed files with 2 additions and 5 deletions

View File

@ -1439,11 +1439,8 @@ void CodeGenSchedModels::inferFromRW(ArrayRef<unsigned> OperWrites,
// Iterate until no variant writes remain.
while (hasVariant(LastTransitions, *this)) {
PredTransitions Transitions(*this);
for (std::vector<PredTransition>::const_iterator
I = LastTransitions.begin(), E = LastTransitions.end();
I != E; ++I) {
Transitions.substituteVariants(*I);
}
for (const PredTransition &Trans : LastTransitions)
Transitions.substituteVariants(Trans);
DEBUG(Transitions.dump());
LastTransitions.swap(Transitions.TransVec);
}