[llvm-commits] [llvm] r109393 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Duncan Sands
baldrick at free.fr
Mon Jul 26 00:54:17 PDT 2010
Author: baldrick
Date: Mon Jul 26 02:54:17 2010
New Revision: 109393
URL: http://llvm.org/viewvc/llvm-project?rev=109393&view=rev
Log:
Pacify gcc-4.5 which wrongly thinks that RExcess (passed as the Excess parameter)
may be used uninitialized in the callers of HighRegPressure.
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=109393&r1=109392&r2=109393&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Mon Jul 26 02:54:17 2010
@@ -1192,11 +1192,12 @@
}
bool HighRegPressure(const SUnit *SU, unsigned &Excess) const {
+ Excess = 0;
+
if (!TLI)
return false;
bool High = false;
- Excess = 0;
for (SUnit::const_pred_iterator I = SU->Preds.begin(),E = SU->Preds.end();
I != E; ++I) {
if (I->isCtrl())
More information about the llvm-commits
mailing list