• Russ Cox's avatar
    5g, 6g, 8g: registerize variables again · e419535f
    Russ Cox authored
    My previous CL:
    
    changeset:   9645:ce2e5f44b310
    user:        Russ Cox <rsc@golang.org>
    date:        Tue Sep 06 10:24:21 2011 -0400
    summary:     gc: unify stack frame layout
    
    introduced a bug wherein no variables were
    being registerized, making Go programs 2-3x
    slower than they had been before.
    
    This CL fixes that bug (along with some others
    it was hiding) and adds a test that optimization
    makes at least one test case faster.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/5174045
    e419535f
bits.c 3.11 KB