From e95c824ee413095d71d857bda995c0d1d0b4fd4b Mon Sep 17 00:00:00 2001 From: clc5q <clc5q@git.zephyr-software.com> Date: Mon, 21 Apr 2008 16:31:57 +0000 Subject: [PATCH] Trivial debug output changes. --- SMPBasicBlock.cpp | 4 +++- SMPProgram.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SMPBasicBlock.cpp b/SMPBasicBlock.cpp index b6bea4fc..003f27ac 100644 --- a/SMPBasicBlock.cpp +++ b/SMPBasicBlock.cpp @@ -825,7 +825,7 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i bool FoundPhiDef = false; bool DebugFlag = false; #if SMP_DEBUG_OPTIMIZATIONS - DebugFlag |= (0 == strcmp("memset", this->MyFunc->GetFuncName())); + DebugFlag |= (0 == strcmp("refresh_potential", this->MyFunc->GetFuncName())); #endif list<list<SMPInstr>::iterator>::iterator InstIter; set<DefOrUse, LessDefUse>::iterator CurrUse; @@ -859,9 +859,11 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i for (PhiIndex = 0; PhiIndex < CurrPhi->GetPhiListSize(); ++PhiIndex) { if (SSANum == CurrPhi->GetUseSSANum(PhiIndex)) { FoundUse = true; + if (DebugFlag) msg("Found the phi USE at index %d\n", PhiIndex); if (UNINIT == CurrPhi->GetUseType(PhiIndex)) { changed = this->SetPhiUseType(DefOp, PhiIndex, DefType); assert(changed); + if (DebugFlag) msg("Changed the phi USE type\n"); } break; } diff --git a/SMPProgram.cpp b/SMPProgram.cpp index 12762d83..5581868b 100644 --- a/SMPProgram.cpp +++ b/SMPProgram.cpp @@ -301,7 +301,7 @@ void SMPProgram::Analyze(void) { pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc); this->FuncMap.insert(TempFunc); CurrFunc->Analyze(); - if (0 == strcmp("weightadj", CurrFunc->GetFuncName())) { + if (0 == strcmp("refresh_potential", CurrFunc->GetFuncName())) { DebugFlag = true; } #if SMP_INFER_TYPES -- GitLab