summary refs log tree commit diff
path: root/mem.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-24 09:48:53 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-24 09:50:35 -0500
commit1bb7652484e1c7ca2cd7fcab858b4bbb18509879 (patch)
treeb04e582abaf59fdd220d9e68895d07902ccd865a /mem.c
parentf3301026fa404c68c7ad399b5a56a5135b88af04 (diff)
downloadroux-1bb7652484e1c7ca2cd7fcab858b4bbb18509879.tar.gz
deduplicate loadsz & storesz
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/mem.c b/mem.c
index 11527fa..fd6ee16 100644
--- a/mem.c
+++ b/mem.c
@@ -1,30 +1,5 @@
 #include "all.h"
 
-static int
-loadsz(Ins *l)
-{
-	switch (l->op) {
-	case Oloadsb: case Oloadub: return 1;
-	case Oloadsh: case Oloaduh: return 2;
-	case Oloadsw: case Oloaduw: return 4;
-	case Oload: return KWIDE(l->cls) ? 8 : 4;
-	}
-	die("unreachable");
-}
-
-static int
-storesz(Ins *s)
-{
-	switch (s->op) {
-	case Ostoreb: return 1;
-	case Ostoreh: return 2;
-	case Ostorew: case Ostores: return 4;
-	case Ostorel: case Ostored: return 8;
-	}
-	die("unreachable");
-}
-
-
 /* require use, maintains use counts */
 void
 memopt(Fn *fn)