diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:45 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:45 +0000 |
commit | 91a02f5beef6b8ba2ae9e79b04259e6c3573fb73 (patch) | |
tree | 0b7f8980e1bb0e4a42fa0fe60a3b818e59ceaf51 /llvm/lib | |
parent | 2d006e767341a2f9ea57a9cb5cea055849a8c684 (diff) | |
download | bcm5719-llvm-91a02f5beef6b8ba2ae9e79b04259e6c3573fb73.tar.gz bcm5719-llvm-91a02f5beef6b8ba2ae9e79b04259e6c3573fb73.zip |
Use the range variant of transform instead of unpacking begin/end
No functionality change is intended.
llvm-svn: 278477
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp b/llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp index 8d891caf166..26a1f5d7047 100644 --- a/llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp +++ b/llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp @@ -152,8 +152,7 @@ bool AArch64RedundantCopyElimination::optimizeCopy(MachineBasicBlock *MBB) { // CBZ/CBNZ. Conservatively mark as much as we can live. CompBr->clearRegisterKills(SmallestDef, TRI); - if (std::none_of(TargetRegs.begin(), TargetRegs.end(), - [&](unsigned Reg) { return MBB->isLiveIn(Reg); })) + if (none_of(TargetRegs, [&](unsigned Reg) { return MBB->isLiveIn(Reg); })) MBB->addLiveIn(TargetReg); // Clear any kills of TargetReg between CompBr and the last removed COPY. |