• Heschi Kreinick's avatar
    cmd/compile: fix debug info generation for loads from Phis · 65c365bf
    Heschi Kreinick authored
    Apparently a LoadReg can take a Phi as its argument. The Phi has names
    in the NamedValue table, so just read the Load's names from the Phi.
    
    The example given, XORKeyStream in chacha20, is pretty complicated so I
    didn't try to actually debug it and verify that the results are right.
    But the debug logging looks reasonable, with the right names in the right
    registers at the right times.
    
    Fixes #25404
    
    Change-Id: I2c3183dcfb033948556d6805bd66c22c0b45625c
    Reviewed-on: https://go-review.googlesource.com/114008
    Run-TryBot: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    65c365bf
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...
logs.txt Loading commit data...
robots.txt Loading commit data...