summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit136a6f0dbbe9e438b7b937ca75ffd97573757932 (patch)
tree28b4af3531b3d17f9b4295de274a8733812713c9 /llvm/lib/CodeGen
parent67ca40c4197acc6a36e1e9139dc8fc608b2e6a44 (diff)
downloadbcm5719-llvm-136a6f0dbbe9e438b7b937ca75ffd97573757932.tar.gz
bcm5719-llvm-136a6f0dbbe9e438b7b937ca75ffd97573757932.zip
Pacify gcc-4.5 which wrongly thinks that RExcess (passed as the Excess parameter)
may be used uninitialized in the callers of HighRegPressure. llvm-svn: 109393
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index cb69314348b..b31f1123dcc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud