You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cbeuw
changed the title
llvm::Register llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed.
RegisterCoalescer: Assertion `isReg() && "This is not a register operand!"' failed.
May 31, 2023
I think some COPY is being added twice to the worklist.
e.g. removing this fixes it
// CopyMI has been erased by joinIntervals at this point. Remove it from
// ErasedInstrs since copyCoalesceWorkList() won't add a successful join back
// to the work list. This keeps ErasedInstrs from growing needlessly.
ErasedInstrs.erase(CopyMI);
So the assumption that an instruction cannot be re-added to the worklist is broken
With
llc -O2
:Backtrace:
On 17.0.0 trunk
https://godbolt.org/z/5f5o9qnWT
The text was updated successfully, but these errors were encountered: