aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linearize.h
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-22 13:41:12 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-22 15:58:05 +0100
commit84f84262a122875e930585dee346124b316d376f (patch)
tree0b290cd4e8a49b8d34c8ec5357f3e57b7e8d5078 /linearize.h
parentef00ea2fa5203a2e3da3e3c7f2c46668d66c31c9 (diff)
downloadsparse-dev-84f84262a122875e930585dee346124b316d376f.tar.gz
canon: simplify calculation of canonical order
The calculation of the canonical order is currently somehow complicated. Fix this by reordering the definition of the different type of pseudos so that they are already in canonical order and just comparing the types to determine the order. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'linearize.h')
-rw-r--r--linearize.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linearize.h b/linearize.h
index 31c754e2..2c548d43 100644
--- a/linearize.h
+++ b/linearize.h
@@ -24,11 +24,11 @@ DECLARE_PTRMAP(phi_map, struct symbol *, pseudo_t);
enum pseudo_type {
PSEUDO_VOID,
PSEUDO_UNDEF,
+ PSEUDO_PHI,
PSEUDO_REG,
+ PSEUDO_ARG,
PSEUDO_SYM,
PSEUDO_VAL,
- PSEUDO_ARG,
- PSEUDO_PHI,
};
struct pseudo {