[PATCH] D49023: [MachineOutliner] Assert that Liveness tracking is accurate (NFC)

Yvan Roux via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 6 12:05:54 PDT 2018


yroux added inline comments.


================
Comment at: include/llvm/CodeGen/MachineOutliner.h:145
   void initLRU(const TargetRegisterInfo &TRI) {
+    assert(MBB->getParent()->getRegInfo().tracksLiveness());
     LRU.init(TRI);
----------------
paquette wrote:
> 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.
Yes I hesitated to add one, but you're right it'd be more helpfull


Repository:
  rL LLVM

https://reviews.llvm.org/D49023





More information about the llvm-commits mailing list