[llvm] [perf] Replace copy-assign by move-assign in llvm/lib/Analysis/* (PR #178169)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 06:38:12 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- llvm/lib/Analysis/IVDescriptors.cpp llvm/lib/Analysis/InlineCost.cpp llvm/lib/Analysis/LoopUnrollAnalyzer.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/IVDescriptors.cpp b/llvm/lib/Analysis/IVDescriptors.cpp
index 759d31d78..39cec1822 100644
--- a/llvm/lib/Analysis/IVDescriptors.cpp
+++ b/llvm/lib/Analysis/IVDescriptors.cpp
@@ -656,9 +656,10 @@ bool RecurrenceDescriptor::AddReductionVar(
// is saved as part of the RecurrenceDescriptor.
// Save the description of this reduction variable.
- ResDes = RecurrenceDescriptor RD(RdxStart, ExitInstruction, IntermediateStore, Kind,
- FMF, ExactFPMathInst, RecurrenceType, IsSigned,
- IsOrdered, CastInsts, MinWidthCastToRecurrenceType);
+ ResDes = RecurrenceDescriptor RD(RdxStart, ExitInstruction, IntermediateStore,
+ Kind, FMF, ExactFPMathInst, RecurrenceType,
+ IsSigned, IsOrdered, CastInsts,
+ MinWidthCastToRecurrenceType);
return true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/178169
More information about the llvm-commits
mailing list