Skip to content

Commit 3478037

Browse files
pmurpull[bot]
authored andcommitted
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 <[email protected]> Run-TryBot: Paul Murphy <[email protected]> Reviewed-by: David Chase <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent d1bfd25 commit 3478037

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright 2022 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// This file contains rules used by the laterLower pass.

src/cmd/compile/internal/ssa/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize, softfloat boo
244244
c.RegSize = 8
245245
c.lowerBlock = rewriteBlockPPC64
246246
c.lowerValue = rewriteValuePPC64
247+
c.lateLowerValue = rewriteValuePPC64latelower
247248
c.registers = registersPPC64[:]
248249
c.gpRegMask = gpRegMaskPPC64
249250
c.fpRegMask = fpRegMaskPPC64

src/cmd/compile/internal/ssa/rewritePPC64latelower.go

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)