s-barannikov wrote: PR with candidate fix: https://github.com/llvm/llvm-project/pull/117248 It successfully compiles the test attached above, and produces the same assembly as before this patch modulo register numbers. https://github.com/llvm/llvm-project/pull/116676