]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't emit unnecessary amd64 extension checks
authornimelehin <nimelehin@gmail.com>
Wed, 15 Sep 2021 07:31:05 +0000 (10:31 +0300)
committerKeith Randall <khr@golang.org>
Tue, 5 Oct 2021 18:32:12 +0000 (18:32 +0000)
commit097a82f54d20cb722b8712025caac44c357c1b13
treeb3bddc40205a7fb464a366b5fae37914f03a698a
parent5d946f1892dc4ae3d3220fb0bc4d61cdf6175ee6
cmd/compile: don't emit unnecessary amd64 extension checks

In case of amd64 the compiler issues checks if extensions are
available on a platform. With GOAMD64 microarchitecture levels
provided, some of the checks could be eliminated.

Change-Id: If15c178bcae273b2ce7d3673415cb8849292e087
Reviewed-on: https://go-review.googlesource.com/c/go/+/352010
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/ssagen/ssa.go
test/codegen/math.go
test/codegen/mathbits.go