aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/rewritedec.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2020-12-31 12:41:53 +0000
committerDaniel Martí <mvdan@mvdan.cc>2021-03-22 16:01:44 +0000
commitbd8b3fe5be9e9a5a2579c013451c07d53b827c56 (patch)
tree9270ef4c8429457d26ebac948fe91cb49a780465 /src/cmd/compile/internal/ssa/rewritedec.go
parente838c76a6ea99007b872669b06590a41278f6188 (diff)
downloadgo-bd8b3fe5be9e9a5a2579c013451c07d53b827c56.tar.gz
go-bd8b3fe5be9e9a5a2579c013451c07d53b827c56.zip
cmd/compile: make no-op rewrite funcs smaller
This doesn't change any behavior, but should help the compiler realise that these funcs really do nothing at all. Change-Id: Ib26c02ef264691acac983538ec300f91d6ff98db Reviewed-on: https://go-review.googlesource.com/c/go/+/280314 Trust: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewritedec.go')
-rw-r--r--src/cmd/compile/internal/ssa/rewritedec.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/rewritedec.go b/src/cmd/compile/internal/ssa/rewritedec.go
index e0fa9768d9..4b7db60551 100644
--- a/src/cmd/compile/internal/ssa/rewritedec.go
+++ b/src/cmd/compile/internal/ssa/rewritedec.go
@@ -409,7 +409,5 @@ func rewriteValuedec_OpStringPtr(v *Value) bool {
return false
}
func rewriteBlockdec(b *Block) bool {
- switch b.Kind {
- }
return false
}