fhahn wrote: Would it be simpler to have a separate helper `setRequiresScalarEpilogue` that's called once up-front with `requiresScalarEpilogue` simply returning the decision as done in multiple other places? https://github.com/llvm/llvm-project/pull/108981