Skip to content
Snippets Groups Projects
Commit e95c824e authored by clc5q's avatar clc5q
Browse files

Trivial debug output changes.

parent fc617083
No related branches found
No related tags found
No related merge requests found
...@@ -825,7 +825,7 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i ...@@ -825,7 +825,7 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i
bool FoundPhiDef = false; bool FoundPhiDef = false;
bool DebugFlag = false; bool DebugFlag = false;
#if SMP_DEBUG_OPTIMIZATIONS #if SMP_DEBUG_OPTIMIZATIONS
DebugFlag |= (0 == strcmp("memset", this->MyFunc->GetFuncName())); DebugFlag |= (0 == strcmp("refresh_potential", this->MyFunc->GetFuncName()));
#endif #endif
list<list<SMPInstr>::iterator>::iterator InstIter; list<list<SMPInstr>::iterator>::iterator InstIter;
set<DefOrUse, LessDefUse>::iterator CurrUse; set<DefOrUse, LessDefUse>::iterator CurrUse;
...@@ -859,9 +859,11 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i ...@@ -859,9 +859,11 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i
for (PhiIndex = 0; PhiIndex < CurrPhi->GetPhiListSize(); ++PhiIndex) { for (PhiIndex = 0; PhiIndex < CurrPhi->GetPhiListSize(); ++PhiIndex) {
if (SSANum == CurrPhi->GetUseSSANum(PhiIndex)) { if (SSANum == CurrPhi->GetUseSSANum(PhiIndex)) {
FoundUse = true; FoundUse = true;
if (DebugFlag) msg("Found the phi USE at index %d\n", PhiIndex);
if (UNINIT == CurrPhi->GetUseType(PhiIndex)) { if (UNINIT == CurrPhi->GetUseType(PhiIndex)) {
changed = this->SetPhiUseType(DefOp, PhiIndex, DefType); changed = this->SetPhiUseType(DefOp, PhiIndex, DefType);
assert(changed); assert(changed);
if (DebugFlag) msg("Changed the phi USE type\n");
} }
break; break;
} }
......
...@@ -301,7 +301,7 @@ void SMPProgram::Analyze(void) { ...@@ -301,7 +301,7 @@ void SMPProgram::Analyze(void) {
pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc); pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc);
this->FuncMap.insert(TempFunc); this->FuncMap.insert(TempFunc);
CurrFunc->Analyze(); CurrFunc->Analyze();
if (0 == strcmp("weightadj", CurrFunc->GetFuncName())) { if (0 == strcmp("refresh_potential", CurrFunc->GetFuncName())) {
DebugFlag = true; DebugFlag = true;
} }
#if SMP_INFER_TYPES #if SMP_INFER_TYPES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment