[Hexagon] Make a test more flexible in HexagonLoopIdiomRecognition
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 7 Nov 2017 17:05:54 +0000 (17:05 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 7 Nov 2017 17:05:54 +0000 (17:05 +0000)
commit385a4e04895f8bc959bdf2ef03d7d6de0f74247f
treedc84e9404adef1545cc789f02647f9899d942fd6
parentb936810833518e0cf5744b5095e6ec5561fa7d35
[Hexagon] Make a test more flexible in HexagonLoopIdiomRecognition

An "or" that sets the sign-bit can be replaced with a "xor", if
the sign-bit was known to be clear before. With some changes to
instruction combining, the simple sign-bit check was failing.
Replace it with a more flexible one to catch more cases.

llvm-svn: 317592
llvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp