tmatheson-arm wrote: How similar is this to the RISC-V pass? Can it be made one generic pass that any backends could use? The problem does not seem specific to these two architectures. https://github.com/llvm/llvm-project/pull/77770