aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/export_test.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-01-14 16:02:23 -0800
committerKeith Randall <khr@golang.org>2016-01-20 21:45:37 +0000
commitb5c5efd5de4c4668b149d1dba4d9b00c88dd0b80 (patch)
tree7e5162e642077d40f58aee4166992ec48949f361 /src/cmd/compile/internal/ssa/export_test.go
parent23d5810c8fd2dc079f06c6052f404d81896d74f0 (diff)
downloadgo-b5c5efd5de4c4668b149d1dba4d9b00c88dd0b80.tar.gz
go-b5c5efd5de4c4668b149d1dba4d9b00c88dd0b80.zip
[dev.ssa] cmd/compile: optimize phi ops
Redo how we keep track of forward references when building SSA. When the forward reference is resolved, update the Value node in place. Improve the phi elimination pass so it can simplify phis of phis. Give SSA package access to decoded line numbers. Fix line numbers for constant booleans. Change-Id: I3dc9896148d260be2f3dd14cbe5db639ec9fa6b7 Reviewed-on: https://go-review.googlesource.com/18674 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/export_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go
index f4d8d58549..badafadd70 100644
--- a/src/cmd/compile/internal/ssa/export_test.go
+++ b/src/cmd/compile/internal/ssa/export_test.go
@@ -31,6 +31,9 @@ func (DummyFrontend) StringData(s string) interface{} {
func (DummyFrontend) Auto(t Type) GCNode {
return nil
}
+func (DummyFrontend) Line(line int32) string {
+ return "unknown.go:0"
+}
func (d DummyFrontend) Logf(msg string, args ...interface{}) { d.t.Logf(msg, args...) }