]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify OpSlicemask optimization
authorAustin Clements <austin@google.com>
Thu, 11 Jan 2018 21:50:09 +0000 (16:50 -0500)
committerAustin Clements <austin@google.com>
Thu, 8 Mar 2018 22:25:29 +0000 (22:25 +0000)
commitda022da900e3c52750894458067136ec799d5c12
tree2edde3c03b395c512b88b1e7c00769653e1434b9
parent6436270dadb232e3ef1afc0d4cf714bcb9434910
cmd/compile: simplify OpSlicemask optimization

The previous CL introduced isConstDelta. Use it to simplify the
OpSlicemask optimization in the prove pass. This passes toolstash
-cmp.

Change-Id: If2aa762db4cdc0cd1c581a536340530a9831081b
Reviewed-on: https://go-review.googlesource.com/87481
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/prove.go