piotr added a comment. I agree the proper fix would be to change the direction of canonicalization. I will look into it. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129844/new/ https://reviews.llvm.org/D129844