• Heschi Kreinick's avatar
    cmd/compile/internal/ssa: use reverse postorder traversal · 73f1a1a1
    Heschi Kreinick authored
    Instead of the hand-written control flow analysis in debug info
    generation, use a reverse postorder traversal, which is basically the
    same thing. It should be slightly faster.
    
    More importantly, the previous version simply gave up in the case of
    non-reducible functions, and produced output that caused a later stage
    to crash. It turns out that there's a non-reducible function in
    compress/flate, so that wasn't a theoretical issue.
    
    With this change, all blocks will be visited, even for non-reducible
    functions.
    
    Change-Id: Id47536764ee93203c6b4105a1a3013fe3265aa12
    Reviewed-on: https://go-review.googlesource.com/73110
    Run-TryBot: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    73f1a1a1
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...