Skip to content

cmd/compile: improve PPC64.rules for loads and stores as found in encoding/binary ByteOrder interface functions #22496

Closed

Description

@laboger

Use PPC64.rules to improve performance of statements that do multiple single byte loads or stores on consecutive bytes, such as is found in the encoding/binary ByteOrder interface. Instead do a single multi-byte load or store where possible, such as lhz, lwz, ld, sth, stw, std.

This improves functions that are found in encoding/binary:
Uint16([]byte) uint16
Uint32([]byte) uint32
Uint64([]byte) uint64
PutUint16([]byte, uint16)
PutUint32([]byte, uint32)
PutUint64([]byte, uint64)

The initial change for this will handle little endian cases.

Activity

  1. changed the title [-]cmd/compile: improve PPC64.rules for loads and stores as found in encoding/binary ByteOrder interface functionsntXX[/-] [+]cmd/compile: improve PPC64.rules for loads and stores as found in encoding/binary ByteOrder interface functions[/+] on Oct 30, 2017
  2. gopherbot commented on Oct 30, 2017

    @gopherbot
    Contributor

    Change https://golang.org/cl/74410 mentions this issue: cmd/compile: add rules to improve consecutive byte loads and stores on ppc64le

  3. gopherbot commented on Mar 2, 2018

    @gopherbot
    Contributor

    Change https://golang.org/cl/98136 mentions this issue: cmd/compile: combine byte loads and stores on ppc64le

  4. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Mar 13, 2018
  5. added this to the Go1.11 milestone on Mar 13, 2018
  6. bradfitz commented on May 7, 2018

    @bradfitz
    Contributor

    Marking release-blocker (because it has a CL) and @randall77 as owner for review.

  7. locked and limited conversation to collaborators on May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions