]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.regabi] cmd/compile: use byte for CallExpr.Use
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 14 Jan 2021 04:30:27 +0000 (11:30 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 14 Jan 2021 05:48:36 +0000 (05:48 +0000)
Reduce 16 byte for CallExpr, from 184 to 168 on 64-bit archs.

Passes toolstash -cmp.

Change-Id: I59c7609ccd03e8b4a7df8d2c30de8022ae312cee
Reviewed-on: https://go-review.googlesource.com/c/go/+/283732
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/cmd/compile/internal/ir/expr.go

index 0639c3b620a32a77a5f363c80a4023bcbe841556..39659c45c01b033ee5ea034fb007fb3a9f68bb1f 100644 (file)
@@ -145,7 +145,7 @@ func (n *BinaryExpr) SetOp(op Op) {
 }
 
 // A CallUse records how the result of the call is used:
-type CallUse int
+type CallUse byte
 
 const (
        _ CallUse = iota