cmd/compile: redundant loads in strconv not eliminated #59478
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
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?
I ran a redundant loads detecting tool on function strconv.FormatFloat().
What did you expect to see?
Redundant loads can be optimized by the compiler.
What did you see instead?
a.nd
is a loop invariant. But the compiler failed to put it in a register, resulting ina.nd
being loaded from memory repeatedly in each iteration.a.nd
is loaded from memory twice in a single iteration.The text was updated successfully, but these errors were encountered: