joker-eph wrote: @jsetoain : I kept the test cases, which does not crash in the main branch, as you noticed, but generated invalid IR. I fixed the pass to catch it ahead of time so that this test passes now. https://github.com/llvm/llvm-project/pull/184618