Revert "[dev.ssa] cmd/compile: don't Compile if Unimplemented"
This reverts commit 766bcc92a5b693f336deffc347be52fe68af884a.
Change-Id: I55413c1aa80d82c856a3ea89b4ffccf80fb58013
Reviewed-on: https://go-review.googlesource.com/12361
Reviewed-by: Keith Randall <khr@golang.org>
diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go
index 889b9d8..e133076 100644
--- a/src/cmd/compile/internal/gc/ssa.go
+++ b/src/cmd/compile/internal/gc/ssa.go
@@ -108,18 +108,17 @@
// Link up variable uses to variable definitions
s.linkForwardReferences()
+ // Main call to ssa package to compile function
+ ssa.Compile(s.f)
+
// Calculate stats about what percentage of functions SSA handles.
if false {
- defer func() { fmt.Printf("SSA implemented: %t\n", !e.unimplemented) }()
+ fmt.Printf("SSA implemented: %t\n", !e.unimplemented)
}
if e.unimplemented {
return nil, false
}
-
- // Main call to ssa package to compile function.
- ssa.Compile(s.f)
-
return s.f, usessa // TODO: return s.f, true once runtime support is in (gc maps, write barriers, etc.)
}