fhahn wrote: With this we now print the debug messages about requiring a scalar epilogue at multiple places. Would it be possible to compute it once and set a flag indicating whether a scalar epilogue is required to avoid this? https://github.com/llvm/llvm-project/pull/96681