diff options
-rw-r--r-- | lib/CodeGen/InstrSched/InstrScheduling.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.h | 3 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 4 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.h | 3 |
4 files changed, 8 insertions, 6 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index edf84d4cad..dafa8353bb 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule } inline InstrGroup* getIGroup (cycles_t c) { - if (c >= groups.size()) + if ((unsigned)c >= groups.size()) groups.resize(c+1); if (groups[c] == NULL) groups[c] = new InstrGroup(nslots); @@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule } inline const InstrGroup* getIGroup (cycles_t c) const { - assert(c < groups.size()); + assert((unsigned)c < groups.size()); return groups[c]; } diff --git a/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h index 7cfc4c0f35..52b5b9f008 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/lib/CodeGen/InstrSched/SchedPriorities.h @@ -26,7 +26,8 @@ #include "llvm/Target/MachineSchedInfo.h" #include "Support/CommandLine.h" #include <list> -#include <hash_set> +#include <ext/hash_set> +#include <ostream> class Method; class MachineInstr; class SchedulingManager; diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index edf84d4cad..dafa8353bb 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule } inline InstrGroup* getIGroup (cycles_t c) { - if (c >= groups.size()) + if ((unsigned)c >= groups.size()) groups.resize(c+1); if (groups[c] == NULL) groups[c] = new InstrGroup(nslots); @@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule } inline const InstrGroup* getIGroup (cycles_t c) const { - assert(c < groups.size()); + assert((unsigned)c < groups.size()); return groups[c]; } diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h index 7cfc4c0f35..52b5b9f008 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.h @@ -26,7 +26,8 @@ #include "llvm/Target/MachineSchedInfo.h" #include "Support/CommandLine.h" #include <list> -#include <hash_set> +#include <ext/hash_set> +#include <ostream> class Method; class MachineInstr; class SchedulingManager; |