You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably because with the extra call, something needs to get spilled/restored around that call. That spill/restore will prevent some op fusing that would otherwise happen.
Just a guess, I haven't actually looked at the code.
Closing, as this seems to be working as intended. Please reopen if you still see anything unexpected.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Indeed
What operating system and processor architecture are you using (
go env
)?Mac M1
go env
OutputWhat did you do?
Run https://go.dev/play/p/sTpGr_NKFLk
Then run it again commenting
fmt.Printf("lol\n")
What did you expect to see?
The 2 programs printing
diff 4.130183266666667e+07
What did you see instead?
The first program prints
diff 4.130183266666664e+07
!The second program prints
diff 4.130183266666667e+07
alrightThe text was updated successfully, but these errors were encountered: