Recommit r298282 with fixes for memory allocation/deallocation
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 21 Mar 2017 17:09:27 +0000 (17:09 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 21 Mar 2017 17:09:27 +0000 (17:09 +0000)
commitd033d1fd82f65c21ad9285cdd6130011f0821640
tree37252a98f5948629ab370adf3421d76824396848
parenta3e3715c3e76f58d7714467a3255b2a68d9ede0b
Recommit r298282 with fixes for memory allocation/deallocation

[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.

llvm-svn: 298400
llvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
llvm/test/CodeGen/Hexagon/loop-idiom/pmpy-mod.ll [new file with mode: 0644]