1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00

cmd/compile: remove dead code

Change-Id: I2d287981d5fcef3aace948c405d618f46200948e
Reviewed-on: https://go-review.googlesource.com/41450
Run-TryBot: Todd Neal <todd@tneal.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Todd Neal 2017-04-21 19:44:24 -05:00
parent ffd7cfce4b
commit 716219ffd9

View File

@ -6,12 +6,10 @@ package ssa
import (
"cmd/internal/obj"
"crypto/sha1"
"fmt"
"math"
"os"
"path/filepath"
"strings"
)
func applyRewrite(f *Func, rb blockRewriter, rv valueRewriter) {
@ -572,20 +570,6 @@ func min(x, y int64) int64 {
return y
}
func experiment(f *Func) bool {
hstr := ""
for _, b := range sha1.Sum([]byte(f.Name)) {
hstr += fmt.Sprintf("%08b", b)
}
r := strings.HasSuffix(hstr, "00011")
_ = r
r = f.Name == "(*fmt).fmt_integer"
if r {
fmt.Printf(" enabled for %s\n", f.Name)
}
return r
}
func isConstZero(v *Value) bool {
switch v.Op {
case OpConstNil: