]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix Mul->Mul64 intrinsic alias
authorKeith Randall <khr@golang.org>
Thu, 25 Oct 2018 16:18:48 +0000 (09:18 -0700)
committerKeith Randall <khr@golang.org>
Thu, 25 Oct 2018 23:12:46 +0000 (23:12 +0000)
commit7a634034c89c653bccd451e417db7034b34402b7
tree0dcd74685e502ee87e322f518c2b04e206b1a153
parent9627180f0f1f016307f4987cec6594baf90d64ae
cmd/compile: fix Mul->Mul64 intrinsic alias

The alias declaration needs to come after the function it is aliasing.

It isn't a big deal in this case, as bits.Mul inlines and has as its
body bits.Mul64, so the desired code gets generated regardless.
The alias should only have an effect on inlining cost estimates
(for functions that call bits.Mul).

Change-Id: I0d814899ce7049a0fb36e8ce1ad5ababbaf6265f
Reviewed-on: https://go-review.googlesource.com/c/144597
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Giovanni Bajo <rasky@develer.com>
src/cmd/compile/internal/gc/ssa.go