]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: in prove, make addRestrictions more generic
authorGiovanni Bajo <rasky@develer.com>
Sun, 1 Apr 2018 23:45:53 +0000 (01:45 +0200)
committerGiovanni Bajo <rasky@develer.com>
Tue, 3 Apr 2018 20:25:17 +0000 (20:25 +0000)
commitb846edfd5979d1cf53d55ea8fd6e4bbcfefb2e75
treeb2e084e9c203782181f48902b77222556496f720
parent02952ad7a84846524a15f4e2b0db8083f74ce836
cmd/compile: in prove, make addRestrictions more generic

addRestrictions was taking a branch parameter, binding its logic
to that of addBranchRestrictions. Since we will need to use it
for updating the facts table for induction variables, refactor it
to remove the branch parameter.

Passes toolstash -cmp.

Change-Id: Iaaec350a8becd1919d03d8574ffd1bbbd906d068
Reviewed-on: https://go-review.googlesource.com/104036
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/ssa/prove.go