forked from OSchip/llvm-project
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:
parent
67ca40c419
commit
136a6f0dbb
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue