[llvm] CodeGen: Compute LiveIntervals before TwoAddressInstructions (PR #225174)

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 05:51:21 PDT 2026


mikaelholmen wrote:

> > I see `` /repo/llvm-project/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:403: bool (anonymous namespace)::TwoAddressInstructionImpl::isPlainlyKilled(const MachineInstr *, LiveRange &) const: Assertion `I != LR.end() && "Reg must be live-in to use."' failed. `` crashes, are they known already?
> 
> It's possibly the same thing, but it's a different assert. Reproducer would be useful

Ok, I extracted and reduced something:
```llc -march=x86-64 -mcpu=corei7 r.ll -o /dev/null```
[r.ll.gz](https://github.com/user-attachments/files/32803999/r.ll.gz)


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


More information about the llvm-commits mailing list