]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: cse should treat -0.0 and 0.0 as different
authorTodd Neal <todd@tneal.org>
Thu, 3 Sep 2015 01:17:47 +0000 (20:17 -0500)
committerTodd Neal <todd@tneal.org>
Thu, 3 Sep 2015 03:05:02 +0000 (03:05 +0000)
commitce4317266c160953aacf46cbe9d8341f86158776
tree6ab0d3287658f357034170a66ab198c64561b659
parent19285efaed7b08535e1b3ba921f584ed8bde6e49
[dev.ssa] cmd/compile: cse should treat -0.0 and 0.0 as different

cse was incorrectly classifying -0.0 and 0.0 as equivalent. This lead
to invalid code as ssa uses PXOR -0.0, reg to negate a floating point.

Fixes math.

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