]> granicus.if.org Git - llvm/commit
[Hexagon] Stop pmpy recognition when shift conversion fails
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 13 Jun 2017 13:51:49 +0000 (13:51 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 13 Jun 2017 13:51:49 +0000 (13:51 +0000)
commit2ba2a31ad4ec2eb67cd0cf9f7f581515f5514a46
tree317bcd656a1f92ab64dae77de9ef574e53707ec3
parent8475234d5e24860ad8e29c20410f82271c117b11
[Hexagon] Stop pmpy recognition when shift conversion fails

The conversion of shifts from right shifts to left shifts may fail.
In such case, the pmpy recognition cannot proceed.

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