diff --git a/src/cmd/compile/internal/ssa/rewrite.go b/src/cmd/compile/internal/ssa/rewrite.go index 15a5cf613636b..58f1fe92493c5 100644 --- a/src/cmd/compile/internal/ssa/rewrite.go +++ b/src/cmd/compile/internal/ssa/rewrite.go @@ -1632,7 +1632,7 @@ func sizeof(t interface{}) int64 { // a register. It assumes float64 values will always fit into registers // even if that isn't strictly true. func registerizable(b *Block, typ *types.Type) bool { - if typ.IsPtrShaped() || typ.IsFloat() { + if typ.IsPtrShaped() || typ.IsFloat() || typ.IsBoolean() { return true } if typ.IsInteger() {