forked from OSchip/llvm-project
parent
e952ad0bc1
commit
06b3b6651e
|
@ -2401,7 +2401,8 @@ static bool BURRSort(SUnit *left, SUnit *right, RegReductionPQBase *SPQ) {
|
||||||
bool RHasPhysReg = right->hasPhysRegDefs;
|
bool RHasPhysReg = right->hasPhysRegDefs;
|
||||||
if (LHasPhysReg != RHasPhysReg) {
|
if (LHasPhysReg != RHasPhysReg) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
const char *const PhysRegMsg[] = {" has no physreg"," defines a physreg"};
|
static const char *const PhysRegMsg[] = { " has no physreg",
|
||||||
|
" defines a physreg" };
|
||||||
#endif
|
#endif
|
||||||
DEBUG(dbgs() << " SU (" << left->NodeNum << ") "
|
DEBUG(dbgs() << " SU (" << left->NodeNum << ") "
|
||||||
<< PhysRegMsg[LHasPhysReg] << " SU(" << right->NodeNum << ") "
|
<< PhysRegMsg[LHasPhysReg] << " SU(" << right->NodeNum << ") "
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnModule(Module &M) {
|
bool runOnModule(Module &M) {
|
||||||
static const char *metaNames[] = {
|
static const char *const metaNames[] = {
|
||||||
// See http://en.wikipedia.org/wiki/Metasyntactic_variable
|
// See http://en.wikipedia.org/wiki/Metasyntactic_variable
|
||||||
"foo", "bar", "baz", "quux", "barney", "snork", "zot", "blam", "hoge",
|
"foo", "bar", "baz", "quux", "barney", "snork", "zot", "blam", "hoge",
|
||||||
"wibble", "wobble", "widget", "wombat", "ham", "eggs", "pluto", "spam"
|
"wibble", "wobble", "widget", "wombat", "ham", "eggs", "pluto", "spam"
|
||||||
|
|
|
@ -298,7 +298,7 @@ struct SortInstByName {
|
||||||
/// target, ordered by their enum value.
|
/// target, ordered by their enum value.
|
||||||
void CodeGenTarget::ComputeInstrsByEnum() const {
|
void CodeGenTarget::ComputeInstrsByEnum() const {
|
||||||
// The ordering here must match the ordering in TargetOpcodes.h.
|
// The ordering here must match the ordering in TargetOpcodes.h.
|
||||||
const char *const FixedInstrs[] = {
|
static const char *const FixedInstrs[] = {
|
||||||
"PHI",
|
"PHI",
|
||||||
"INLINEASM",
|
"INLINEASM",
|
||||||
"PROLOG_LABEL",
|
"PROLOG_LABEL",
|
||||||
|
|
Loading…
Reference in New Issue