[PATCH] D79605: MachineBasicBlock::updateTerminator now requires an explicit layout successor.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 14:32:46 PDT 2020
efriedma added a comment.
Okay, that explanation makes sense.
================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:586
+ // The block has an unconditional fallthrough (or the end of the block is
+ // unreachable).
----------------
"or the end of the block is unreachable" makes me a little worried. If I'm understanding correctly, if do somehow end up in that situation, the layout successor won't actually be a successor of the BasicBlock, and `assert(isSuccessor(PreviousLayoutSuccessor))` will fail.
================
Comment at: llvm/lib/CodeGen/MachineBlockPlacement.cpp:2729
+ // }
+ // }
+
----------------
Commented out code?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79605/new/
https://reviews.llvm.org/D79605
More information about the llvm-commits
mailing list