• Marvin Stenger's avatar
    cmd/compile: avoid copying in nilcheckelim2 · bad5abf6
    Marvin Stenger authored
    nilcheckelim2 cleans up by copying b.Values in a loop, omitting
    OpUnknowns. However, the common case is that there are no OpUnknowns,
    in which case we can skip a lot of work.
    
    So we track the first nilcheck which was eliminated, if any, and only
    start copying from there. If no nilcheck was eliminated we won't copy at all.
    
    Fixes #20964
    
    Change-Id: Icd44194cf8ac81ce6485ce257b4d33e093003a40
    Reviewed-on: https://go-review.googlesource.com/65651
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    bad5abf6
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...