[PATCH] D147060: [MachineSink] Fix an assertion failure in isCycleInvariant

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 09:21:40 PDT 2023


qcolombet added a comment.

> I think the break statement cannot be removed, as it would crash if the last instruction is a debug instruction. Please correct me if I am missing something here.

That's correct. MBB may not have any terminator.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147060



More information about the llvm-commits mailing list