Skip to content

cmd/compile: backport CL 36256 to 1.8 (s390x SSA issue) #18958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mundaym opened this issue Feb 6, 2017 · 0 comments
Closed

cmd/compile: backport CL 36256 to 1.8 (s390x SSA issue) #18958

mundaym opened this issue Feb 6, 2017 · 0 comments

Comments

@mundaym
Copy link
Member

mundaym commented Feb 6, 2017

I'd like to backport the fix for #18906 (CL 36256) to 1.8. The bug is a regression from 1.7. This issue is for tracking the backport.

I've sent CL 36350 which is CL 36256 cherry-picked onto release-branch.go1.8.

gopherbot pushed a commit that referenced this issue Feb 6, 2017
…x SSA rules

This CL fixes two issues:

1. Load ops were initially always lowered to unsigned loads, even
   for signed types. This was fine by itself however LoadReg ops
   (used to re-load spilled values) were lowered to signed loads
   for signed types. This meant that spills could invalidate
   optimizations that assumed the original unsigned load.

2. Types were not always being maintained correctly through rules
   designed to eliminate unnecessary zero and sign extensions.

Updates #18906 and fixes #18958 (backport of CL 36256 to 1.8).

Change-Id: Id44953b0f644cad047e8474edbd24e8a344ca9a7
Reviewed-on: https://go-review.googlesource.com/36350
Reviewed-by: Brad Fitzpatrick <[email protected]>
@mundaym mundaym closed this as completed Feb 6, 2017
@golang golang locked and limited conversation to collaborators Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants