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

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 01:12:58 PDT 2026


================
@@ -1577,11 +1586,168 @@ bool LoopIdiomRecognize::optimizeCRCLoop(const PolynomialInfo &Info) {
   // Sarwate table-lookup optimization. Hence, until we're able to emit
   // target-specific instructions for Hexagon, subsuming HexagonLoopIdiom,
   // disable the optimization for Hexagon.
-  Module &M = *CurLoop->getHeader()->getModule();
-  Triple TT(M.getTargetTriple());
+  Triple TT(CurLoop->getHeader()->getModule()->getTargetTriple());
----------------
artagnon wrote:

Unnecessary unrelated change? Could revert?

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


More information about the llvm-commits mailing list