]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: in prove, infer unsigned relations while branching
authorGiovanni Bajo <rasky@develer.com>
Tue, 3 Apr 2018 16:59:44 +0000 (18:59 +0200)
committerGiovanni Bajo <rasky@develer.com>
Sun, 29 Apr 2018 09:37:15 +0000 (09:37 +0000)
commit29162ec9a7d4ee08a558729236cd9bf50febee09
tree26ef561247d173afbea94ab1e15801ad6d531c70
parent5c40210987844c7a64eb0bfcb781ed865d9c4b7f
cmd/compile: in prove, infer unsigned relations while branching

When a branch is followed, we apply the relation as described
in the domain relation table. In case the relation is in the
positive domain, we can also infer an unsigned relation if,
by that point, we know that both operands are non-negative.

Fixes #20393

Change-Id: Ieaf0c81558b36d96616abae3eb834c788dd278d5
Reviewed-on: https://go-review.googlesource.com/100278
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Giovanni Bajo <rasky@develer.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/prove.go
test/prove.go