https://github.com/Fznamznon commented: This looks reasonable. Does it make sense to add a sanity test for codegen? I.e. so there is no crashes/assertions and no attempts to generate anything https://github.com/llvm/llvm-project/pull/117483