]> granicus.if.org Git - llvm/commit
[Hexagon] Recognize polynomial-modulo loop idiom again
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 20 Mar 2017 18:12:58 +0000 (18:12 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 20 Mar 2017 18:12:58 +0000 (18:12 +0000)
commitfea30225e19731bd4c7393e0ceecb33dc96d934c
tree11fa808a1a9076c6430e83a7590c6935489c2d9d
parentf6fa4ce469b08f36f67ecc136aef9afca7ae9b24
[Hexagon] Recognize polynomial-modulo loop idiom again

Regain the ability to recognize loops calculating polynomial modulo
operation. This ability has been lost due to some changes in the
preceding optimizations. Add code to preprocess the IR to a form
that the pattern matching code can recognize.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
test/CodeGen/Hexagon/loop-idiom/pmpy-mod.ll [new file with mode: 0644]