test/bench/go1: benchmark Mandelbrot200 is reduced to zero with gollvm #56483
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Nonzero result
What did you see instead?
The output above.
The problem is that the function
mandelbrot
has no size effects and llvm eliminates its call. To fix the problem we need to check the result ofmandelbrot
in the caller function.The text was updated successfully, but these errors were encountered: