Compile matmul reference benchmark with -O2.