[llvm-commits] [llvm] r64373 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Evan Cheng
evan.cheng at apple.com
Thu Feb 12 01:52:16 PST 2009
Author: evancheng
Date: Thu Feb 12 03:52:13 2009
New Revision: 64373
URL: http://llvm.org/viewvc/llvm-project?rev=64373&view=rev
Log:
Oops. Last second clean up messed things up.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=64373&r1=64372&r2=64373&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Thu Feb 12 03:52:13 2009
@@ -1074,9 +1074,10 @@
static unsigned calcMaxScratches(const SUnit *SU) {
unsigned Scratches = 0;
for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
- I != E; ++I)
+ I != E; ++I) {
if (I->isCtrl()) continue; // ignore chain preds
- Scratches++;
+ Scratches++;
+ }
return Scratches;
}
More information about the llvm-commits
mailing list