[llvm] [PeepholeOptimizer] Fix use-after-free of recycled MachineInstr in LocalMIs (PR #201285)

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 01:41:43 PDT 2026


chfast wrote:

I was fixing the same issue because this is easily reachable by isel fuzzer, but I missed the issue has a PR already. This one looks like more systematic approach, while mine in https://github.com/llvm/llvm-project/pull/202216 just tightens the LocalMI deletion point for the critical fold.

I'm fine with whatever solution fixes the crash. If this PR is already under review I can put mine on hold. 

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


More information about the llvm-commits mailing list