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

Sean Clarke via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 12:15:29 PDT 2026


================
@@ -259,6 +261,9 @@ class LoopIdiomRecognize {
   bool avoidLIRForMultiBlockLoop(bool IsMemset = false,
                                  bool IsLoopMemset = false);
   bool optimizeCRCLoop(const PolynomialInfo &Info);
+  bool optimizeCRCLoopWithFastClmul(const PolynomialInfo &Info);
+  void buildReducedCRCLoop(const PolynomialInfo &Info,
+                           CRCTableFn GetTableEntry);
----------------
xarkenz wrote:

I got rid of those two names completely due to the other changes you suggested, but I named the calculated value in the clmul path `ComputedByte`.

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


More information about the llvm-commits mailing list