From: Josh Bleecher Snyder Date: Mon, 17 Aug 2015 07:29:56 +0000 (-0700) Subject: [dev.ssa] cmd/compile: add likely annotations to blocks in html X-Git-Tag: go1.7beta1~1623^2^2~266 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=759b9c3b80da47a8db59f015bfca551a2a15ae18;p=gostls13.git [dev.ssa] cmd/compile: add likely annotations to blocks in html 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 --- diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go index 581331a215..848e016129 100644 --- a/src/cmd/compile/internal/ssa/html.go +++ b/src/cmd/compile/internal/ssa/html.go @@ -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 }