The generic answer is that you can assume SameSafeExpr does what its spec says, and nothing more.
The intent of that function is for code like
a, b := someExpression1, someExpression2
if SameSafeExpr(someExpression1, someExpression2) == true, then you can instead do
a := someExpression1
b := a
I don't think that says anything about aliasing. For instance, SameSafeExpr(a, a) == true. For something like:
a := []byte{3,4,5}
a = make([]byte, 5)
copy(a, a)
then you can't use the original value of `a` as the argument to makeslicecopy.
(The aliasing part in SameSafeExpr's spec is about the fact that a, b := make([]byte, 5), make([]byte, 5) must still make 2 byte slices.)
As far as benchmarks, a microbenchmark is fine to use for this case. But I'd also like a few references to where it actually triggers in real code. Not a benchmark per se, but some realistic code that would be helped by the optimization.