]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: enable lateLower pass on PPC64
authorPaul E. Murphy <murp@ibm.com>
Wed, 12 Oct 2022 16:04:50 +0000 (11:04 -0500)
committerPaul Murphy <murp@ibm.com>
Mon, 24 Oct 2022 18:59:50 +0000 (18:59 +0000)
This allows new rules to be added which would otherwise
greatly overcomplicate the generic rules, like CC opcode
conversion or zero register simplification.

Change-Id: I1533f0fa07815aff99ed8ab890077bd22a3bfbf5
Reviewed-on: https://go-review.googlesource.com/c/go/+/442595
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules [new file with mode: 0644]
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/rewritePPC64latelower.go [new file with mode: 0644]

diff --git a/src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules b/src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules
new file mode 100644 (file)
index 0000000..c43e10a
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains rules used by the laterLower pass.
index df168e6f0354d021fdf2a99f04bd9125a2637874..15dae9b711686c3c8436547870fb9e869e1b6cd7 100644 (file)
@@ -244,6 +244,7 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize, softfloat boo
                c.RegSize = 8
                c.lowerBlock = rewriteBlockPPC64
                c.lowerValue = rewriteValuePPC64
+               c.lateLowerValue = rewriteValuePPC64latelower
                c.registers = registersPPC64[:]
                c.gpRegMask = gpRegMaskPPC64
                c.fpRegMask = fpRegMaskPPC64
diff --git a/src/cmd/compile/internal/ssa/rewritePPC64latelower.go b/src/cmd/compile/internal/ssa/rewritePPC64latelower.go
new file mode 100644 (file)
index 0000000..95a5f92
--- /dev/null
@@ -0,0 +1,11 @@
+// Code generated from gen/PPC64latelower.rules; DO NOT EDIT.
+// generated with: cd gen; go run *.go
+
+package ssa
+
+func rewriteValuePPC64latelower(v *Value) bool {
+       return false
+}
+func rewriteBlockPPC64latelower(b *Block) bool {
+       return false
+}