]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] fix equivalence class after aux/auxint refactor.
authorDaniel Morsing <daniel.morsing@gmail.com>
Sun, 14 Jun 2015 22:06:39 +0000 (23:06 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Mon, 15 Jun 2015 12:06:05 +0000 (12:06 +0000)
commit3b817ef8f8e377e741ffa94ff3a5154bebe206cd
tree678ef32f00a8ba49e4e605602ad1c136756fef41
parentc31b6dd0be202698a142568d8a8762db74b4516d
[dev.ssa] fix equivalence class after aux/auxint refactor.

This caused the following code snippet to be miscompiled

var f int
x := g(&f)
f = 10

Moving the store of 10 above the function call.

Change-Id: Ic6951f5e7781b122cd881df324a38e519d6d66f0
Reviewed-on: https://go-review.googlesource.com/11073
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/cse.go