Commit 716219ff authored by Todd Neal's avatar Todd Neal

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent ffd7cfce
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment