[llvm] [LoopIdiomRecognize] Enable clmul optimization for CRC loops (PR #203405)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 27 05:13:24 PDT 2026


================
@@ -566,6 +634,14 @@ void HashRecognize::print(raw_ostream &OS) const {
   }
   OS.indent(2) << "Computed CRC lookup table:\n";
   genSarwateTable(Info.RHS, Info.ByteOrderSwapped).print(OS);
+  OS.indent(2) << "Computed CRC Barrett constants:\n";
+  auto [Mu, FullGenPoly] =
+      genBarrettConstants(Info.RHS, Info.TripCount, Info.ByteOrderSwapped);
+  OS << "Mu = ";
+  Mu.print(OS, false);
+  OS << ", FullGenPoly = ";
+  FullGenPoly.print(OS, false);
+  OS << '\n';
----------------
artagnon wrote:

```suggestion
  OS << "\n";
```

nit, just uniformity?

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


More information about the llvm-commits mailing list