mirror of
https://github.com/golang/go
synced 2024-11-23 21:50:08 -07:00
fff732ea2c
This changes makes constant propagation compare 'from' values using node pointers rather than symbol names when checking to see whether a set operation is redundant. When a function is inlined multiple times in a calling function its arguments will share symbol names even though the values are different. Prior to this fix the bug409 test would hit a case with 6g where an LEAQ instruction was incorrectly eliminated from the second inlined function call. 8g appears to have had the same bug, but the test did not fail there. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5646044
2 lines
60 B
Plaintext
2 lines
60 B
Plaintext
+1.000000e+000 +2.000000e+000 +3.000000e+000 +4.000000e+000
|