[llvm] Use `std::move` to avoid copy (PR #113080)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 09:52:00 PDT 2024
================
@@ -1377,7 +1377,7 @@ bool MachineLICMImpl::IsProfitableToHoist(MachineInstr &MI,
}) &&
IsLoopInvariantInst(MI, CurLoop) &&
any_of(MRI->use_nodbg_instructions(DefReg),
- [&CurLoop, this, DefReg, Cost](MachineInstr &UseMI) {
+ [&CurLoop, this, DefReg, std::move(Cost)](MachineInstr &UseMI) {
----------------
abhishek-kaushik22 wrote:
Hey, I've made multiple PRs (grouped by component) because it gets hard to get them reviewed in different components and the bot pings a lot of people. If you can review them (and possibly merge?) I can close all the others and make a new one.
https://github.com/llvm/llvm-project/pull/113080
More information about the llvm-commits
mailing list