aboutsummaryrefslogtreecommitdiff
path: root/ssa.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-05 13:12:09 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-05 13:12:09 +0800
commitb6e3e473d0b9c1550791cc3d21d86bfa2920acb8 (patch)
tree59a846bf9d6f168f9fd76bb6f9b171adcc033c0f /ssa.h
parentcd01997d0cc7cbdbcb8b68ddca877a29f29723a4 (diff)
...
Diffstat (limited to 'ssa.h')
-rw-r--r--ssa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssa.h b/ssa.h
index 307328b..0507a5c 100644
--- a/ssa.h
+++ b/ssa.h
@@ -32,15 +32,16 @@ struct COpr {
int sub;
int dep;
- int mod;
int reg; /* -1 for spilled, -2 for discarded */
int begin, end; /* for reg allocation */
+ int mod;
CType_t type;
CInst_t def;
CRange_t range;
COpr_t par; /* union-find */
COpr_t cval;
COpr_t spill; /* check this reference if spilled */
+ COpr_t same; /* for common exp elimination */
};
typedef struct COList COList;
@@ -67,7 +68,6 @@ struct CInst {
ADDR, /* get address */
MUL, DIV, MOD, ADD, SUB,
SHL, SHR, AND, XOR, OR, NOR,
- LOR, LAND,
EQ, NE, LT, GT, LE, GE,
NEG
} op;