From: Paul E. Murphy Date: Wed, 12 Oct 2022 16:04:50 +0000 (-0500) Subject: cmd/compile: enable lateLower pass on PPC64 X-Git-Tag: go1.20rc1~557 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f841722853db7911cb5f65d1045e9ecbb5a0d08c;p=gostls13.git cmd/compile: enable lateLower pass on PPC64 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 Run-TryBot: Paul Murphy Reviewed-by: David Chase TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- diff --git a/src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules b/src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules new file mode 100644 index 0000000000..c43e10a809 --- /dev/null +++ b/src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules @@ -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. diff --git a/src/cmd/compile/internal/ssa/config.go b/src/cmd/compile/internal/ssa/config.go index df168e6f03..15dae9b711 100644 --- a/src/cmd/compile/internal/ssa/config.go +++ b/src/cmd/compile/internal/ssa/config.go @@ -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 index 0000000000..95a5f927b1 --- /dev/null +++ b/src/cmd/compile/internal/ssa/rewritePPC64latelower.go @@ -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 +}