]> Joshua Wise's Git repositories - snipe.git/blobdiff - codegen/peephole.sml
Initial import of l4c
[snipe.git] / codegen / peephole.sml
index 7fa4554b305d5721dfbbedf8d305a8e8ed169c95..7bf55a1c9a9235e6b1888f9e06b652998d440d5c 100644 (file)
@@ -40,7 +40,6 @@ struct
     | peephole (X.CMP (X.REG r, X.CONST 0w0)::l) = (X.TEST (X.REG r, X.REG r))::(peephole l)
     | peephole ((X.JMP a)::(X.JMP b)::l) = peephole ((X.JMP a)::l) (* What the cock? Yes, we actually generate this. *)
     | peephole ((X.JMP l1)::(X.LABEL l2)::l) = if (Label.compare (l1,l2) = EQUAL) then (X.LABEL l2)::(peephole l) else (X.JMP l1)::(X.LABEL l2)::(peephole l)
-    | peephole (X.SIZE (s, i)::l) = map (fn i => X.SIZE (s, i)) (peephole [i]) @ (peephole l)  (* :/ that kind of sucks, but oh well *)
     | peephole (a::l) = a::(peephole l)
     | peephole nil = nil
 
This page took 0.022349 seconds and 4 git commands to generate.