[llvm] [LoopIdiom] Use HashRecognize to optimize CRC (PR #143208)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 5 00:57:42 PDT 2025
================
@@ -1473,6 +1491,160 @@ bool LoopIdiomRecognize::avoidLIRForMultiBlockLoop(bool IsMemset,
return false;
}
+bool LoopIdiomRecognize::optimizeCRCLoop(const PolynomialInfo &Info) {
+ // FIXME: Hexagon has a special HexagonLoopIdiom that optimizes CRC using
----------------
dtcxzyw wrote:
We should add a new TTI hook instead of checking the target.
https://github.com/llvm/llvm-project/pull/143208
More information about the llvm-commits
mailing list