]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: propagate unsigned limits for Div and Mod if arguments are positive
authorJorropo <jorropo.pgm@gmail.com>
Tue, 13 Aug 2024 16:40:44 +0000 (18:40 +0200)
committerKeith Randall <khr@golang.org>
Tue, 3 Sep 2024 21:11:49 +0000 (21:11 +0000)
commit68c431e89f2cb5422d53c65be988b15598a9c692
tree3dfb23cd27341c103042fd51e2b23c4b45843727
parentd91a2e5b11cc1badd7c760a911218a64d91ac8b0
cmd/compile: propagate unsigned limits for Div and Mod if arguments are positive

I didn't implemented negative limits since prove is most useful for BCE which
should never be negative in the first place.

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