]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: compute Modu's maximum limits from argument's limits
authorJorropo <jorropo.pgm@gmail.com>
Tue, 13 Aug 2024 15:17:06 +0000 (17:17 +0200)
committerKeith Randall <khr@golang.org>
Tue, 3 Sep 2024 17:13:06 +0000 (17:13 +0000)
commit194fa2eb6cdeaddc4a89fae4610f99d8060d10a0
tree32d0a4b7c36c7f60173f755abd11c30f5f2094fb
parent57df33814afc02bda314abea28ee8a3dc997505c
cmd/compile: compute Modu's maximum limits from argument's limits

addLocalFacts loop already ft.update which sets up limits correctly, but doing this in flowLimit help us since other values might depend on this limit.

Updates #68857

We could improve this further:
- remove mod alltogheter when we can prove a < b.
- we could do more adhoc computation in flowLimit to set umax and umin tighter

Change-Id: I5184913577b6a51a07cb53a6e6b73552a982de0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/605156
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/prove.go
test/prove.go