Layout::repeat
#[inline]
This fixes an optimization regression by allowing LLVM to see through more functions. Closes #43272