diff options
author | Jessica Paquette <jpaquette@apple.com> | 2023-02-03 16:17:35 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2023-02-03 16:41:02 -0800 |
commit | 7bb9d70bbb984b78f48e82ff0fb862abd45bf6ee (patch) | |
tree | 02f88b39d177c3733c819fd99990e3498a7a1b1d /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | ec37ebf59be78665caa679d46607a2f054155c55 (diff) | |
download | llvm-7bb9d70bbb984b78f48e82ff0fb862abd45bf6ee.zip llvm-7bb9d70bbb984b78f48e82ff0fb862abd45bf6ee.tar.gz llvm-7bb9d70bbb984b78f48e82ff0fb862abd45bf6ee.tar.bz2 |
[NFC] Remove unneccessary `llvm::` in MachineOutliner/SuffixTree
We have `using llvm`, we don't need to say `llvm::`.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 358a22f..aac60d6 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -361,8 +361,8 @@ struct InstructionMapper { // repeated substring. mapToIllegalUnsigned(It, CanOutlineWithPrevInstr, UnsignedVecForMBB, InstrListForMBB); - llvm::append_range(InstrList, InstrListForMBB); - llvm::append_range(UnsignedVec, UnsignedVecForMBB); + append_range(InstrList, InstrListForMBB); + append_range(UnsignedVec, UnsignedVecForMBB); } } @@ -598,8 +598,8 @@ void MachineOutliner::findCandidates( // That is, one must either // * End before the other starts // * Start after the other ends - if (llvm::all_of(CandidatesForRepeatedSeq, [&StartIdx, - &EndIdx](const Candidate &C) { + if (all_of(CandidatesForRepeatedSeq, [&StartIdx, + &EndIdx](const Candidate &C) { return (EndIdx < C.getStartIdx() || StartIdx > C.getEndIdx()); })) { // It doesn't overlap with anything, so we can outline it. @@ -759,7 +759,7 @@ MachineFunction *MachineOutliner::createOutlinedFunction( Mangler Mg; // Get the mangled name of the function for the linkage name. std::string Dummy; - llvm::raw_string_ostream MangledNameStream(Dummy); + raw_string_ostream MangledNameStream(Dummy); Mg.getNameWithPrefix(MangledNameStream, F, false); DISubprogram *OutlinedSP = DB.createFunction( @@ -793,10 +793,10 @@ bool MachineOutliner::outline(Module &M, bool OutlinedSomething = false; // Sort by benefit. The most beneficial functions should be outlined first. - llvm::stable_sort(FunctionList, [](const OutlinedFunction &LHS, - const OutlinedFunction &RHS) { - return LHS.getBenefit() > RHS.getBenefit(); - }); + stable_sort(FunctionList, + [](const OutlinedFunction &LHS, const OutlinedFunction &RHS) { + return LHS.getBenefit() > RHS.getBenefit(); + }); // Walk over each function, outlining them as we go along. Functions are // outlined greedily, based off the sort above. @@ -899,8 +899,8 @@ bool MachineOutliner::outline(Module &M, // Keep track of what we removed by marking them all as -1. for (unsigned &I : - llvm::make_range(Mapper.UnsignedVec.begin() + C.getStartIdx(), - Mapper.UnsignedVec.begin() + C.getEndIdx() + 1)) + make_range(Mapper.UnsignedVec.begin() + C.getStartIdx(), + Mapper.UnsignedVec.begin() + C.getEndIdx() + 1)) I = static_cast<unsigned>(-1); OutlinedSomething = true; |