]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: combine multiple rotate instructions
authorKeith Randall <khr@golang.org>
Thu, 18 Aug 2022 21:13:33 +0000 (14:13 -0700)
committerKeith Randall <khr@golang.org>
Wed, 31 Aug 2022 22:10:52 +0000 (22:10 +0000)
commit33a7e5a4b49fa04ce6f65b5b0645a44a0c93eaad
tree4d18ba4a26deeffa151ed9e0ef32f310f863d608
parent5f5c018ca46b6634da9372f5af759cb36fcaed5f
cmd/compile: combine multiple rotate instructions

Rotating by c, then by d, is the same as rotating by c+d.

Change-Id: I36df82261460ff80f7c6d39bcdf0e840cef1c91a
Reviewed-on: https://go-review.googlesource.com/c/go/+/424894
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ruinan Sun <Ruinan.Sun@arm.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/ssa/gen/386.rules
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewrite386.go
src/cmd/compile/internal/ssa/rewriteARM64.go
src/cmd/compile/internal/ssa/rewritegeneric.go
test/codegen/rotate.go