[PATCH] D49023: [MachineOutliner] Assert that Liveness tracking is accurate (NFC)
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 6 08:53:45 PDT 2018
paquette added inline comments.
================
Comment at: include/llvm/CodeGen/MachineOutliner.h:145
void initLRU(const TargetRegisterInfo &TRI) {
+ assert(MBB->getParent()->getRegInfo().tracksLiveness());
LRU.init(TRI);
----------------
Can you add a message to the assert like "Candidate's MF must track liveness"? It's a bit nicer to have some context with asserts in my experience.
Repository:
rL LLVM
https://reviews.llvm.org/D49023
More information about the llvm-commits
mailing list