mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ssa: replace Frontend.Auto with Func.NewLocal
Change-Id: I0858568d225daba1c318842dc0c9b5e652dff612 Reviewed-on: https://go-review.googlesource.com/c/go/+/526519 Auto-Submit: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
5d6f835b3e
commit
5d9e0be159
9 changed files with 25 additions and 27 deletions
|
|
@ -6,7 +6,6 @@ package ssa
|
|||
|
||||
import (
|
||||
"cmd/compile/internal/types"
|
||||
"cmd/internal/src"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
|
@ -22,7 +21,7 @@ func TestCSEAuxPartitionBug(t *testing.T) {
|
|||
arg1Aux := &tstAux{"arg1-aux"}
|
||||
arg2Aux := &tstAux{"arg2-aux"}
|
||||
arg3Aux := &tstAux{"arg3-aux"}
|
||||
a := c.Frontend().Auto(src.NoXPos, c.config.Types.Int8.PtrTo())
|
||||
a := c.Temp(c.config.Types.Int8.PtrTo())
|
||||
|
||||
// construct lots of values with args that have aux values and place
|
||||
// them in an order that triggers the bug
|
||||
|
|
@ -93,7 +92,7 @@ func TestCSEAuxPartitionBug(t *testing.T) {
|
|||
// TestZCSE tests the zero arg cse.
|
||||
func TestZCSE(t *testing.T) {
|
||||
c := testConfig(t)
|
||||
a := c.Frontend().Auto(src.NoXPos, c.config.Types.Int8.PtrTo())
|
||||
a := c.Temp(c.config.Types.Int8.PtrTo())
|
||||
|
||||
fun := c.Fun("entry",
|
||||
Bloc("entry",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue