]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: in prove, detect loops with negative increments
authorGiovanni Bajo <rasky@develer.com>
Sun, 15 Apr 2018 14:03:30 +0000 (16:03 +0200)
committerGiovanni Bajo <rasky@develer.com>
Sun, 29 Apr 2018 09:38:18 +0000 (09:38 +0000)
commit6d379add0fefcc17ed7b763078526800a3c1d705
treefaeb34f011cf8637601357d9f4a6fc5d6b4e4635
parent980fdb8dd5fe0151a9b7e84ec6b8c20a11727521
cmd/compile: in prove, detect loops with negative increments

To be effective, this also requires being able to relax constraints
on min/max bound inclusiveness; they are now exposed through a flags,
and prove has been updated to handle it correctly.

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