Closed dmitshur closed 6 years ago
It seems this was mentioned/discussed in https://github.com/golang/go/issues/17895#issuecomment-293417087.
Correct, in visitor.unconvert there should be a check that if ft.Type's underlying type is float32/float64/complex64/complex128, then the conversion needs to be kept.
At least by default. I suppose we could add a -fma=false flag or something to restore historical behavior.
@mdempsky, a new language change in Go 1.9 is described as:
If I understand correctly, that means in Go 1.9, the following two snippets have different behavior:
However,
unconvert
would simplify the second block to the first, which would change behavior.Is my understanding correct?