• Matthew Dempsky's avatar
    cmd/compile: simplify needwritebarrier · 794f1ebf
    Matthew Dempsky authored
    Currently, whether we need a write barrier is simply a property of the
    pointer slot being written to.
    
    The only optimization we currently apply using the value being written
    is that pointers to stack variables can omit write barriers because
    they're only written to stack slots... but we already omit write
    barriers for all writes to the stack anyway.
    
    Passes toolstash -cmp.
    
    Change-Id: I7f16b71ff473899ed96706232d371d5b2b7ae789
    Reviewed-on: https://go-review.googlesource.com/37109Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    794f1ebf
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...