projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd2878c
)
Pacify gcc-4.5 which wrongly thinks that RExcess (passed as the Excess parameter)
author
Duncan Sands
<baldrick@free.fr>
Mon, 26 Jul 2010 07:54:17 +0000
(07:54 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Mon, 26 Jul 2010 07:54:17 +0000
(07:54 +0000)
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
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index cb69314348bc3171cc805615e4eb6316439864fc..b31f1123dcc6de7b059c82af1d4dc75e02d0b1d0 100644
(file)
--- 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())