[PATCH] D113116: [CodeGen] Fix assertion failure in TwoAddressInstructionPass::rescheduleMIBelowKill

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 8 01:47:14 PST 2021


foad added inline comments.


================
Comment at: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:959
     // We have to move the copies first so that the MBB is still well-formed
     // when calling handleMove().
     for (MachineBasicBlock::iterator MBBI = AfterMI; MBBI != End;) {
----------------
RKSimon wrote:
> Adjust this - since we're not actually moving the debug instr copies 
Not quite sure what you mean. The instructions in the range [AfterMI,End) are a mixture of copies and debug instructions. We are moving all of them, but (with this patch) only updating LiveIntervals when we move a copy. I think the comment above is still accurate. Did you have a suggestion for improving it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113116



More information about the llvm-commits mailing list