Change information
Commit message:
[dev.simd] simd: make "best" instruction choice also depend on commutativity
the compare-based-on-immediate instructions are sometimes commutative,
sometimes not. In this case, that means the instruction cannot be
commutative.
also improve the comments for comparisons.
Change-Id: I83a55fa5ffbd6cbbaf5cb23b3e8a68a5da8aae2f
Files:
- M src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
- M src/cmd/compile/internal/ssa/opGen.go
- M src/cmd/compile/internal/ssa/rewriteAMD64.go
- M src/simd/_gen/simdgen/gen_simdMachineOps.go
- M src/simd/_gen/simdgen/gen_utility.go
- M src/simd/_gen/simdgen/ops/Compares/categories.yaml
- M src/simd/ops_amd64.go
Change size: XL
Delta: 7 files changed, 642 insertions(+), 728 deletions(-)
Branch: refs/heads/dev.simd
Submit Requirements:
Code-Review: +2 by Austin Clements, +2 by Junyang Shao
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI