]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: rework induction variable detector
authorKeith Randall <khr@golang.org>
Sat, 2 Jul 2022 18:07:55 +0000 (11:07 -0700)
committerHeschi Kreinick <heschi@google.com>
Wed, 6 Jul 2022 17:00:37 +0000 (17:00 +0000)
commit2acd3646fc448b760e82fcace189adda94a1904a
tree994528af352453ff5b76a3be10e3e22c4c55c621
parent53a4152d478d75ef4b71e428b9d69ed54144081f
cmd/compile: rework induction variable detector

Induction variable detection is still not quite right. I've added
another failing test.

Redo the overflow/underflow detector so it is more obviously correct.

Update #53600
Fixes #53653
Fixes #53663

Change-Id: Id95228e282fdbf6bd80b26e1c41d62e935ba08ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/415874
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/loopbce.go
test/fixedbugs/issue53600.go
test/fixedbugs/issue53600.out
test/fixedbugs/issue53653.go [new file with mode: 0644]
test/fixedbugs/issue53653.out [new file with mode: 0644]
test/loopbce.go