From fca55129b16251c89f2cebaf4ea322da58609fc8 Mon Sep 17 00:00:00 2001 From: Jessica Paquette Date: Tue, 24 Jul 2018 17:42:11 +0000 Subject: [MachineOutliner][NFC] Make Candidates own their call information Before this, TCI contained all the call information for each Candidate. This moves that information onto the Candidates. As a result, each Candidate can now supply how it ought to be called. Thus, Candidates will be able to, say, call the same function in cheaper ways when possible. This also removes that information from TCI, since it's no longer used there. A follow-up patch for the AArch64 outliner will demonstrate this. llvm-svn: 337840 --- llvm/lib/CodeGen/MachineOutliner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp') diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 9c68591..99cc5f7 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -1279,7 +1279,7 @@ bool MachineOutliner::outline( const TargetInstrInfo &TII = *STI.getInstrInfo(); // Insert a call to the new function and erase the old sequence. - auto CallInst = TII.insertOutlinedCall(M, MBB, StartIt, *OF.MF, C.TCI); + auto CallInst = TII.insertOutlinedCall(M, MBB, StartIt, *OF.MF, C); // If the caller tracks liveness, then we need to make sure that anything // we outline doesn't break liveness assumptions. -- cgit v1.1