aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/func.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2017-02-10 10:15:10 -0500
committerCherry Zhang <cherryyz@google.com>2017-03-16 14:24:40 +0000
commit1b85300602f8530e505ad5b8b033a15f5521d1a7 (patch)
tree07d92632d25ec9640d42e72e5884b49578b346c7 /src/cmd/compile/internal/ssa/func.go
parent9ebf3d5100a52b2c0ebcbf9754c02d1edf7a035f (diff)
downloadgo-1b85300602f8530e505ad5b8b033a15f5521d1a7.tar.gz
go-1b85300602f8530e505ad5b8b033a15f5521d1a7.zip
cmd/compile: clean up SSA-building code
Now that the write barrier insertion is moved to SSA, the SSA building code can be simplified. Updates #17583. Change-Id: I5cacc034b11aa90b0abe6f8dd97e4e3994e2bc25 Reviewed-on: https://go-review.googlesource.com/36840 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/func.go')
-rw-r--r--src/cmd/compile/internal/ssa/func.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/func.go b/src/cmd/compile/internal/ssa/func.go
index 75b5b44a96..fc7db290bf 100644
--- a/src/cmd/compile/internal/ssa/func.go
+++ b/src/cmd/compile/internal/ssa/func.go
@@ -27,6 +27,9 @@ type Func struct {
scheduled bool // Values in Blocks are in final order
NoSplit bool // true if function is marked as nosplit. Used by schedule check pass.
+ NoWB bool // write barrier is not allowed
+ WBPos src.XPos // line number of first write barrier
+
// when register allocation is done, maps value ids to locations
RegAlloc []Location