Index: include/llvm/CodeGen/TargetInstrInfo.h =================================================================== --- include/llvm/CodeGen/TargetInstrInfo.h +++ include/llvm/CodeGen/TargetInstrInfo.h @@ -1604,7 +1604,7 @@ /// Returns a \p outliner::TargetCostInfo struct containing target-specific /// information for a set of outlining candidates. - virtual outliner::TargetCostInfo getOutlininingCandidateInfo( + virtual outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { llvm_unreachable( "Target didn't implement TargetInstrInfo::getOutliningCandidateInfo!"); Index: lib/CodeGen/MachineOutliner.cpp =================================================================== --- lib/CodeGen/MachineOutliner.cpp +++ lib/CodeGen/MachineOutliner.cpp @@ -912,7 +912,7 @@ // Create an OutlinedFunction to store it and check if it'd be beneficial // to outline. TargetCostInfo TCI = - TII.getOutlininingCandidateInfo(CandidatesForRepeatedSeq); + TII.getOutliningCandidateInfo(CandidatesForRepeatedSeq); std::vector Seq; for (unsigned i = Leaf->SuffixIdx; i < Leaf->SuffixIdx + StringLen; i++) Seq.push_back(ST.Str[i]); Index: lib/Target/AArch64/AArch64InstrInfo.h =================================================================== --- lib/Target/AArch64/AArch64InstrInfo.h +++ lib/Target/AArch64/AArch64InstrInfo.h @@ -238,7 +238,7 @@ bool isFunctionSafeToOutlineFrom(MachineFunction &MF, bool OutlineFromLinkOnceODRs) const override; - outliner::TargetCostInfo getOutlininingCandidateInfo( + outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const override; outliner::InstrType getOutliningType(MachineBasicBlock::iterator &MIT, unsigned Flags) const override; Index: lib/Target/AArch64/AArch64InstrInfo.cpp =================================================================== --- lib/Target/AArch64/AArch64InstrInfo.cpp +++ lib/Target/AArch64/AArch64InstrInfo.cpp @@ -4928,7 +4928,7 @@ }; outliner::TargetCostInfo -AArch64InstrInfo::getOutlininingCandidateInfo( +AArch64InstrInfo::getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { unsigned SequenceSize = std::accumulate( RepeatedSequenceLocs[0].front(), Index: lib/Target/X86/X86InstrInfo.h =================================================================== --- lib/Target/X86/X86InstrInfo.h +++ lib/Target/X86/X86InstrInfo.h @@ -544,7 +544,7 @@ ArrayRef> getSerializableDirectMachineOperandTargetFlags() const override; - virtual outliner::TargetCostInfo getOutlininingCandidateInfo( + virtual outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const override; bool isFunctionSafeToOutlineFrom(MachineFunction &MF, Index: lib/Target/X86/X86InstrInfo.cpp =================================================================== --- lib/Target/X86/X86InstrInfo.cpp +++ lib/Target/X86/X86InstrInfo.cpp @@ -7406,7 +7406,7 @@ }; outliner::TargetCostInfo -X86InstrInfo::getOutlininingCandidateInfo( +X86InstrInfo::getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { unsigned SequenceSize = std::accumulate( RepeatedSequenceLocs[0].front(), std::next(RepeatedSequenceLocs[0].back()),