[llvm-commits] [llvm] r170450 - /llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Andrew Trick
atrick at apple.com
Tue Dec 18 12:52:52 PST 2012
Author: atrick
Date: Tue Dec 18 14:52:52 2012
New Revision: 170450
URL: http://llvm.org/viewvc/llvm-project?rev=170450&view=rev
Log:
MISched: cleanup, use the proper iterator type.
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=170450&r1=170449&r2=170450&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Tue Dec 18 14:52:52 2012
@@ -1213,7 +1213,7 @@
if (SU->isScheduled)
return;
- for (SUnit::succ_iterator I = SU->Preds.begin(), E = SU->Preds.end();
+ for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
I != E; ++I) {
unsigned PredReadyCycle = I->getSUnit()->TopReadyCycle;
unsigned MinLatency = I->getMinLatency();
More information about the llvm-commits
mailing list