diff options
author | Alexandru Moșoi <mosoi@google.com> | 2016-04-12 18:24:34 +0200 |
---|---|---|
committer | Alexandru Moșoi <alexandru@mosoi.ro> | 2016-04-19 22:04:30 +0000 |
commit | 8b20fd000d7e894865442134f9d6d197ac5dabed (patch) | |
tree | 29c90352d4da834de0b9c12bcdb3d5e31fdd8652 /test/prove.go | |
parent | 082f464823cdb47042a142802776fa7874e6c05b (diff) | |
download | go-git-8b20fd000d7e894865442134f9d6d197ac5dabed.tar.gz |
cmd/compile: transform some Phis into Or8.
func f(a, b bool) bool {
return a || b
}
is now a single instructions (excluding loading and unloading the arguments):
v10 = ORB <bool> v11 v12 : AX
Change-Id: Iff63399410cb46909f4318ea1c3f45a029f4aa5e
Reviewed-on: https://go-review.googlesource.com/21872
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'test/prove.go')
-rw-r--r-- | test/prove.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/prove.go b/test/prove.go index a78adf03dc..8bcc9ae614 100644 --- a/test/prove.go +++ b/test/prove.go @@ -1,6 +1,10 @@ // +build amd64 // errorcheck -0 -d=ssa/prove/debug=3 +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package main import "math" |