Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMPStaticAnalyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
SMPStaticAnalyzer
Commits
e95c824e
Commit
e95c824e
authored
16 years ago
by
clc5q
Browse files
Options
Downloads
Patches
Plain Diff
Trivial debug output changes.
parent
fc617083
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SMPBasicBlock.cpp
+3
-1
3 additions, 1 deletion
SMPBasicBlock.cpp
SMPProgram.cpp
+1
-1
1 addition, 1 deletion
SMPProgram.cpp
with
4 additions
and
2 deletions
SMPBasicBlock.cpp
+
3
−
1
View file @
e95c824e
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
SMPProgram.cpp
+
1
−
1
View file @
e95c824e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment