]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove inl escape analysis hack
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 9 May 2016 05:05:21 +0000 (22:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 21 Aug 2016 23:19:23 +0000 (23:19 +0000)
Relevant issues: #5056, #9537, and #11053.
Their tests all pass.

Change-Id: Ibbe05982ed5f332149ffd2cb6a232b8d677c4454
Reviewed-on: https://go-review.googlesource.com/27464
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/inl.go

index 2b84dd4a66898415e7021baa895c3a042baabc6e..9c346fbedfeef2330607ae2f21dcd180ec2be986 100644 (file)
@@ -843,13 +843,6 @@ func inlvar(var_ *Node) *Node {
        n.Name.Curfn = Curfn // the calling function, not the called one
        n.Addrtaken = var_.Addrtaken
 
-       // This may no longer be necessary now that we run escape analysis
-       // after wrapper generation, but for 1.5 this is conservatively left
-       // unchanged. See bugs 11053 and 9537.
-       if var_.Esc == EscHeap {
-               addrescapes(n)
-       }
-
        Curfn.Func.Dcl = append(Curfn.Func.Dcl, n)
        return n
 }