[llvm] [GlobalISel] Add computeNumSignBits for SHL (PR #152067)

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 00:02:18 PDT 2025


================
@@ -2051,6 +2083,7 @@ unsigned GISelValueTracking::computeNumSignBits(Register R,
   // Okay, we know that the sign bit in Mask is set.  Use CLO to determine
   // the number of identical bits in the top of the input value.
   Mask <<= Mask.getBitWidth() - TyBits;
+  LLVM_DEBUG(dbgs() << "Mask.countl_one(): " << Mask.countl_one() << "\n");
----------------
davemgreen wrote:

This debug be removed now.

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


More information about the llvm-commits mailing list