COFFEE: Fix generation of BLAS when autotuning
COFFEE: now restore layout after padding only if needed