shithub: mc

Download patch

ref: c5d3f887bcb243a46e0ea11edbe2851844f79d73
parent: 771cd99ddf086d2feb4112fef7082f45a004fea9
author: Ori Bernstein <[email protected]>
date: Thu Jun 14 23:51:30 EDT 2012

Minimize live ranges.

    Address calculations are likely to be smaller than whatever
    we're storing into them. Calculate it later.

--- a/8/isel.c
+++ b/8/isel.c
@@ -484,8 +484,8 @@
             die("Unimplemented op %s", opstr(exprop(n)));
             break;
         case Ostor: /* reg -> mem */
-            a = memloc(s, args[0], mode(n));
             b = selexpr(s, args[1]);
+            a = memloc(s, args[0], mode(n));
             b = inri(s, b);
             g(s, Imov, b, a, NULL);
             r = b;