From a5bda585d5912b291aa247c8aa6519d2cc3125d7 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Fri, 4 Jul 2025 09:07:27 +0200 Subject: [PATCH] cmd/compile: run fmt on ssa prove.go used to make my editor and precomit checks very unhappy. Change-Id: I25f7ffa2191480bc1b4f91fa91ccf3e4768045fa Reviewed-on: https://go-review.googlesource.com/c/go/+/685818 Reviewed-by: Carlos Amedee Reviewed-by: Keith Randall Reviewed-by: Keith Randall Auto-Submit: Keith Randall LUCI-TryBot-Result: Go LUCI --- src/cmd/compile/internal/ssa/prove.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/cmd/compile/internal/ssa/prove.go b/src/cmd/compile/internal/ssa/prove.go index 5617edb21f..93bd525c38 100644 --- a/src/cmd/compile/internal/ssa/prove.go +++ b/src/cmd/compile/internal/ssa/prove.go @@ -1917,15 +1917,22 @@ func (ft *factsTable) flowLimit(v *Value) bool { // See if we can get any facts because v is the result of signed mod by a constant. // The mod operation has already been rewritten, so we have to try and reconstruct it. -// x % d +// +// x % d +// // is rewritten as -// x - (x / d) * d +// +// x - (x / d) * d +// // furthermore, the divide itself gets rewritten. If d is a power of 2 (d == 1<> k) << k -// = (x + adj) & (-1<> k) << k +// = (x + adj) & (-1<