SergejSalnikov wrote: I think the logic was duplicated before (multiple implementations of the same functionality). it's just nobody paid an attention. Now that I've touched the code recently, I've noticed that. https://github.com/llvm/llvm-project/pull/166236