[llvm] [perf] Replace copy-assign by move-assign in llvm/lib/Support/* (PR #178167)

Nikolas Klauser via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 05:24:03 PST 2026


================
@@ -1242,7 +1251,7 @@ KnownBits KnownBits::urem(const KnownBits &LHS, const KnownBits &RHS) {
   if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) {
     // NB: Low bits set in `remGetLowBits`.
     APInt HighBits = ~(RHS.getConstant() - 1);
-    Known.Zero |= HighBits;
+    Known.Zero |= std::move(HighBits);
----------------
philnik777 wrote:

This move doesn't do anything.

https://github.com/llvm/llvm-project/pull/178167


More information about the llvm-commits mailing list