]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: replace conditions to CCMP instructions on ARM64
authorCh1n-ch1nless <aleksandrov.oa.work@gmail.com>
Thu, 21 Aug 2025 17:09:59 +0000 (20:09 +0300)
committerGopher Robot <gobot@golang.org>
Thu, 12 Feb 2026 17:27:24 +0000 (09:27 -0800)
commitfbe55325ddce51a7fc099e1efb0d326e7a2e1ed8
tree6cf63bd251bfb2c6b6eade4938da86c4c2b317ef
parent20bc1949722c1fd66de5d568f1422845332d18f3
cmd/compile: replace conditions to CCMP instructions on ARM64

This change introduces a new SSA pass that converts conditionals
with logical AND into CMP/CCMP instruction sequences on ARM64.

Fixes #71268

Change-Id: I3eba9c05b88ed6eb70350d30f6e805e6a4dddbf1
Reviewed-on: https://go-review.googlesource.com/c/go/+/698099
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/merge_conditional_branches.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/merge_conditional_branches_test.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/test/conditionalCmpConst_test.go [new file with mode: 0644]
src/cmd/compile/internal/test/testdata/gen/conditionalCmpConstGen.go [new file with mode: 0644]
test/codegen/comparisons.go