aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-07-26 07:54:17 +0000
committerDuncan Sands <baldrick@free.fr>2010-07-26 07:54:17 +0000
commitb3893b193b294c4dfd37e101e9d796568b28d461 (patch)
tree5b35355844274f711fd29f1711d6f20e74386eac
parentfd2878c8d0e876e849f795bb3f5d5e2f82aa59bd (diff)
Pacify gcc-4.5 which wrongly thinks that RExcess (passed as the Excess parameter)
may be used uninitialized in the callers of HighRegPressure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109393 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index cb69314348..b31f1123dc 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -1192,11 +1192,12 @@ namespace {
}
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())