diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-07-24 17:42:11 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-07-24 17:42:11 +0000 |
commit | fca55129b16251c89f2cebaf4ea322da58609fc8 (patch) | |
tree | 63cfb6daaa9b7edbef9c5737fb34332c3d01a7d0 /llvm/lib/CodeGen | |
parent | 1cc52a00792d206d4999f2c530cc8994ab0b9e65 (diff) | |
download | bcm5719-llvm-fca55129b16251c89f2cebaf4ea322da58609fc8.tar.gz bcm5719-llvm-fca55129b16251c89f2cebaf4ea322da58609fc8.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 9c68591ee0e..99cc5f70dc3 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. |