]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: move all constant folding logic into evconst
authorMatthew Dempsky <mdempsky@google.com>
Thu, 28 Feb 2019 01:34:07 +0000 (17:34 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 13 Mar 2019 18:23:41 +0000 (18:23 +0000)
commit3def15cd20dc136e033a5866086ce862dc36bd52
treeac731fad78bbb64e7e851c6aef46a172b70f2f9e
parent3aa7bbdbcb432f78462fa816ba7c63cb7f3991fe
cmd/compile: move all constant folding logic into evconst

All setconst calls now happen within evconst. While here, get rid of
callrecv, which (incompletely) duplicates the logic of hascallchan.

Passes toolstash-check.

Change-Id: Ic67b9dd2a1b397d4bc25e8c8b6f81daf4f6cfb75
Reviewed-on: https://go-review.googlesource.com/c/go/+/166980
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/typecheck.go