[llvm] [LoopIdiom] Use HashRecognize to optimize CRC (PR #143208)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 07:53:30 PDT 2025


artagnon wrote:

> What if the input loop did other things aside from calculating the CRC (such as calling `extern` functions)? Will we abandon this transform or preserve the non-CRC operations?

We will abandon the transform, since HashRecognize will always abort on stray operations. Added a test.

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


More information about the llvm-commits mailing list