[llvm] [HashRecognize] Check TC against bitwidth of LHSAux (PR #144881)

Piotr Fusik via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 01:55:06 PDT 2025


================
@@ -612,12 +613,12 @@ HashRecognize::recognizeCRC() const {
   KnownBits ResultBits = VE.KnownPhis.at(ConditionalRecurrence.Phi);
 
   auto IsZero = [](const KnownBits &K) { return K.isZero(); };
-  if (!checkExtractBits(ResultBits, TC, IsZero, *ByteOrderSwapped))
+  if (!checkExtractBits(ResultBits, std::min(TC, ResultBits.getBitWidth()),
----------------
pfusik wrote:

Introduce a temporary variable to prevent line wrap.

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


More information about the llvm-commits mailing list