]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: derive relation between x+delta and x in prove
authorWayne Zuo <wdvxdr@golangcn.org>
Fri, 13 May 2022 15:52:48 +0000 (23:52 +0800)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 31 Aug 2022 09:35:10 +0000 (09:35 +0000)
commitd2e0587f77e1cbbd5c7966242c85edba83b37157
treee21a3c24a3a2c950a80e2fade4edb812ca10855c
parent6b113c0fecd62b57ee88757c3ca80e9bdd11150d
cmd/compile: derive relation between x+delta and x in prove

If x+delta cannot overflow/underflow, we can derive:
  x+delta < x if delta<0 (this CL included)
  x+delta > x if delta>0 (this CL not included due to
  a recursive stack overflow)

Remove 95 bounds checks during ./make.bat

Fixes #51622

Change-Id: I60d9bd84c5d7e81bbf808508afd09be596644f09
Reviewed-on: https://go-review.googlesource.com/c/go/+/406175
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/ssa/prove.go
test/prove.go