[go] cmd/compile: replace conditions to CCMP instructions on ARM64

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Feb 12, 2026, 12:27:30 PM (18 hours ago) Feb 12
to Oleg Aleksandrov, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Junyang Shao, Go LUCI, Keith Randall, Keith Randall, Martin Möhrmann, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
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-by: Keith Randall <k...@golang.org>
Auto-Submit: Keith Randall <k...@golang.org>
Reviewed-by: Keith Randall <k...@google.com>
Reviewed-by: Junyang Shao <shaoj...@google.com>
Files:
  • M src/cmd/compile/internal/ssa/compile.go
  • A src/cmd/compile/internal/ssa/merge_conditional_branches.go
  • A src/cmd/compile/internal/ssa/merge_conditional_branches_test.go
  • M src/cmd/compile/internal/ssa/rewrite.go
  • A src/cmd/compile/internal/test/conditionalCmpConst_test.go
  • A src/cmd/compile/internal/test/testdata/gen/conditionalCmpConstGen.go
  • M test/codegen/comparisons.go
Change size: XL
Delta: 7 files changed, 5852 insertions(+), 8 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Keith Randall, +2 by Keith Randall, +1 by Junyang Shao
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I3eba9c05b88ed6eb70350d30f6e805e6a4dddbf1
Gerrit-Change-Number: 698099
Gerrit-PatchSet: 15
Gerrit-Owner: Oleg Aleksandrov <aleksandr...@gmail.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
Gerrit-Reviewer: Martin Möhrmann <moeh...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages