[PATCH] D49023: [MachineOutliner] Assert that Liveness tracking is accurate (NFC)
Yvan Roux via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 7 01:07:24 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336481: [MachineOutliner] Assert that Liveness tracking is accurate (NFC) (authored by yroux, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D49023?vs=154445&id=154487#toc
Repository:
rL LLVM
https://reviews.llvm.org/D49023
Files:
llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
Index: llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
+++ llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
@@ -142,6 +142,8 @@
/// If a target does not need this information, then this should not be
/// called.
void initLRU(const TargetRegisterInfo &TRI) {
+ assert(MBB->getParent()->getRegInfo().tracksLiveness() &&
+ "Candidate's Machine Function must track liveness");
LRU.init(TRI);
LRU.addLiveOuts(*MBB);
Index: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -5065,6 +5065,8 @@
// Check if LR is available through all of the MBB. If it's not, then set
// a flag.
+ assert(MBB.getParent()->getRegInfo().tracksLiveness() &&
+ "Suitable Machine Function for outlining must track liveness");
LiveRegUnits LRU(getRegisterInfo());
LRU.addLiveOuts(MBB);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49023.154487.patch
Type: text/x-patch
Size: 1122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180707/97611557/attachment.bin>
More information about the llvm-commits
mailing list