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
ce3e1f01
Commit
ce3e1f01
authored
11 years ago
by
clc5q
Browse files
Options
Downloads
Patches
Plain Diff
Propagate MEDS type NUMERIC from DEFs to USEs of sign- and zero-extended moves.
parent
7f56d92b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SMPInstr.cpp
+5
-0
5 additions, 0 deletions
SMPInstr.cpp
with
5 additions
and
0 deletions
SMPInstr.cpp
+
5
−
0
View file @
ce3e1f01
...
@@ -6005,6 +6005,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
...
@@ -6005,6 +6005,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
}
}
break;
break;
#if 0
case SMP_SIGN_EXTEND:
case SMP_SIGN_EXTEND:
case SMP_ZERO_EXTEND:
case SMP_ZERO_EXTEND:
// Should we infer that all operands are NUMERIC? !!!???!!!!
// Should we infer that all operands are NUMERIC? !!!???!!!!
...
@@ -6013,6 +6014,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
...
@@ -6013,6 +6014,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
updated = true;
updated = true;
}
}
break;
break;
#endif
case SMP_ADDRESS_OF: // take effective address
case SMP_ADDRESS_OF: // take effective address
if (UNINIT == CurrRT->GetOperatorType()) {
if (UNINIT == CurrRT->GetOperatorType()) {
...
@@ -6023,6 +6025,8 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
...
@@ -6023,6 +6025,8 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
}
}
break;
break;
case SMP_SIGN_EXTEND:
case SMP_ZERO_EXTEND:
case SMP_U_LEFT_SHIFT: // unsigned left shift
case SMP_U_LEFT_SHIFT: // unsigned left shift
case SMP_S_LEFT_SHIFT: // signed left shift
case SMP_S_LEFT_SHIFT: // signed left shift
case SMP_U_RIGHT_SHIFT: // unsigned right shift
case SMP_U_RIGHT_SHIFT: // unsigned right shift
...
@@ -6105,6 +6109,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
...
@@ -6105,6 +6109,7 @@ bool SMPInstr::InferOperatorType(SMPRegTransfer *CurrRT) {
#if SMP_AGGRESSIVE_TYPE_INFERENCE
#if SMP_AGGRESSIVE_TYPE_INFERENCE
if (UNINIT == CurrRT->GetRightTree()->GetOperatorType()) {
if (UNINIT == CurrRT->GetRightTree()->GetOperatorType()) {
CurrRT->GetRightTree()->SetOperatorType(NUMERIC, this);
CurrRT->GetRightTree()->SetOperatorType(NUMERIC, this);
updated = true;
}
}
#endif
#endif
updated |= this->InferOperatorType(CurrRT->GetRightTree());
updated |= this->InferOperatorType(CurrRT->GetRightTree());
...
...
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