From: Cuong Manh Le Date: Tue, 21 Apr 2020 06:57:41 +0000 (+0700) Subject: cmd/compile: remove unused nlo function X-Git-Tag: go1.15beta1~460 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=05db7de1c1a27b75df1f11990a6e3e00f7e991cd;p=gostls13.git cmd/compile: remove unused nlo function Change-Id: I858d666d491f649f78581a43437408ffab33863b Reviewed-on: https://go-review.googlesource.com/c/go/+/229139 Run-TryBot: Cuong Manh Le TryBot-Result: Gobot Gobot Reviewed-by: Michael Munday --- diff --git a/src/cmd/compile/internal/ssa/rewrite.go b/src/cmd/compile/internal/ssa/rewrite.go index 3c37c5c5ec..40cb750d83 100644 --- a/src/cmd/compile/internal/ssa/rewrite.go +++ b/src/cmd/compile/internal/ssa/rewrite.go @@ -404,11 +404,6 @@ func oneBit16(x int16) bool { return x&(x-1) == 0 && x != 0 } func oneBit32(x int32) bool { return x&(x-1) == 0 && x != 0 } func oneBit64(x int64) bool { return x&(x-1) == 0 && x != 0 } -// nlo returns the number of leading ones. -func nlo(x int64) int64 { - return int64(nlz64(^x)) -} - // nto returns the number of trailing ones. func nto(x int64) int64 { return ntz(^x)