Skip to content

Commit 3b96eeb

Browse files
committed
cmd/compile: rewrite the constant parts of the prove pass
Handles a lot more cases where constant ranges can eliminate various (mostly bounds failure) paths. Fixes #66826 Fixes #66692 Fixes #48213 Update #57959 TODO: remove constant logic from poset code, no longer needed. Change-Id: Id196436fcd8a0c84c7d59c04f93bd92e26a0fd7e Reviewed-on: https://go-review.googlesource.com/c/go/+/599096 Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 553443d commit 3b96eeb

File tree

8 files changed

+814
-438
lines changed

8 files changed

+814
-438
lines changed

src/cmd/compile/internal/ssa/func.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ func (f *Func) invalidateCFG() {
796796
// base.DebugHashMatch(this function's package.name)
797797
//
798798
// for use in bug isolation. The return value is true unless
799-
// environment variable GOSSAHASH is set, in which case "it depends".
799+
// environment variable GOCOMPILEDEBUG=gossahash=X is set, in which case "it depends on X".
800800
// See [base.DebugHashMatch] for more information.
801801
func (f *Func) DebugHashMatch() bool {
802802
if !base.HasDebugHash() {

0 commit comments

Comments
 (0)