1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:10:04 -07:00

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 <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>
This commit is contained in:
Paul E. Murphy 2022-10-12 11:04:50 -05:00 committed by Paul Murphy
parent ffa03f6bac
commit f841722853
3 changed files with 17 additions and 0 deletions

View File

@ -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.

View 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

View File

@ -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
}