[llvm] [LoopIdiomRecognize] Enable clmul optimization for CRC loops (PR #203405)
Piotr Fusik via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 05:02:59 PDT 2026
================
@@ -1592,9 +1758,9 @@ bool LoopIdiomRecognize::optimizeCRCLoop(const PolynomialInfo &Info) {
[CRCTy](const APInt &E) { return ConstantInt::get(CRCTy, E); });
Constant *ConstArray =
ConstantArray::get(ArrayType::get(CRCTy, 256), CRCConstants);
- GlobalVariable *GV =
- new GlobalVariable(M, ConstArray->getType(), true,
- GlobalValue::PrivateLinkage, ConstArray, ".crctable");
+ GlobalVariable *GV = new GlobalVariable(
+ *CurLoop->getHeader()->getModule(), ConstArray->getType(), true,
----------------
pfusik wrote:
Why this change?
https://github.com/llvm/llvm-project/pull/203405
More information about the llvm-commits
mailing list