[llvm] [LLVM] Fix dangling access to aliasee in stripAndAccumulateConstantOf… (PR #159214)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 02:13:24 PDT 2025


https://github.com/nikic requested changes to this pull request.

Per https://github.com/llvm/llvm-project/blob/4c7de930b3e265f04d86425cbbbc5f78536ce4b2/llvm/lib/IR/Verifier.cpp#L988-L989 this is ill-formed IR.

Generally speaking, code is not expected to handle ill-formed IR. This would need some additional justification for why we should do this. Why is MLIR generating this invalid alias and expecting it to work?

https://github.com/llvm/llvm-project/pull/159214


More information about the llvm-commits mailing list