]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove ".fp" fake arg
authorCherry Zhang <cherryyz@google.com>
Mon, 8 Mar 2021 20:19:47 +0000 (15:19 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 10 Mar 2021 15:24:31 +0000 (15:24 +0000)
No longer needed with previous CLs.

Change-Id: I9a1c11092a2736c190fa8e8ddfbb913b708957eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/300155
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssagen/ssa.go

index cc79c07af7f7e283685d30ba2c57db9437663096..f1f244cce6ea77f4444bb4c78a12b8c983651e7f 100644 (file)
@@ -545,13 +545,7 @@ func buildssa(fn *ir.Func, worker int) *ssa.Func {
        for _, n := range fn.Dcl {
                if n.Class == ir.PPARAM {
                        if s.canSSA(n) {
-                               var v *ssa.Value
-                               if n.Sym().Name == ".fp" {
-                                       // Race-detector's get-caller-pc incantation is NOT a real Arg.
-                                       v = s.newValue0(ssa.OpGetCallerPC, n.Type())
-                               } else {
-                                       v = s.newValue0A(ssa.OpArg, n.Type(), n)
-                               }
+                               v := s.newValue0A(ssa.OpArg, n.Type(), n)
                                s.vars[n] = v
                                s.addNamedValue(n, v) // This helps with debugging information, not needed for compilation itself.
                        } else { // address was taken AND/OR too large for SSA