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
This commit is contained in:
Duncan Sands 2010-07-26 07:54:17 +00:00
parent 67ca40c419
commit 136a6f0dbb
1 changed files with 2 additions and 1 deletions

View File

@ -1192,11 +1192,12 @@ namespace {
} }
bool HighRegPressure(const SUnit *SU, unsigned &Excess) const { bool HighRegPressure(const SUnit *SU, unsigned &Excess) const {
Excess = 0;
if (!TLI) if (!TLI)
return false; return false;
bool High = false; bool High = false;
Excess = 0;
for (SUnit::const_pred_iterator I = SU->Preds.begin(),E = SU->Preds.end(); for (SUnit::const_pred_iterator I = SU->Preds.begin(),E = SU->Preds.end();
I != E; ++I) { I != E; ++I) {
if (I->isCtrl()) if (I->isCtrl())