[PATCH] D118124: [regalloc] Fix assertion error when LiveInterval is empty

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 12:35:30 PST 2022


MatzeB added a comment.

The thing that confuses me is that the very first thing in `LiveRegMatrix::checkInterference()` is this:

  if (VirtReg.empty())
    return IK_Free;

so I don't see how we would even reach the `intervalIsInOneMBB` test if the live interval is empty...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118124/new/

https://reviews.llvm.org/D118124



More information about the llvm-commits mailing list