]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile: add likely annotations to blocks in html
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 17 Aug 2015 07:29:56 +0000 (00:29 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 17 Aug 2015 18:56:33 +0000 (18:56 +0000)
This was missing from CL 13472
due to a badly synced client.

Change-Id: If59fc669125dd1caa335dacfbf0f8dbd7b074312
Reviewed-on: https://go-review.googlesource.com/13639
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/html.go

index 581331a2153f3fa3da0e0f1848ca18a3f92d3f4c..848e0161297b43fbeb8dcaafa7c8db6c5af33f6f 100644 (file)
@@ -389,6 +389,12 @@ func (b *Block) LongHTML() string {
                        s += " " + c.HTML()
                }
        }
+       switch b.Likely {
+       case BranchUnlikely:
+               s += " (unlikely)"
+       case BranchLikely:
+               s += " (likely)"
+       }
        return s
 }