[AArch64][CollectLOH] Fix a regression that prevented us to detect chains of
authorQuentin Colombet <qcolombet@apple.com>
Thu, 27 Aug 2015 23:47:10 +0000 (23:47 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 27 Aug 2015 23:47:10 +0000 (23:47 +0000)
commit4a93cd8f662b0d3c7b45163e3c165f9cef9a33c8
treee3875cfe5c99c6b9d744af99942870ea6370d991
parentdaf6885fa4d5cab11a589346091d23a1178e762a
[AArch64][CollectLOH] Fix a regression that prevented us to detect chains of
more than 2 instructions.

I introduced this regression a while back and did not noticed it because I
somehow forgot to push the initial test cases for the pass!

Fix that as well!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64CollectLOH.cpp
test/CodeGen/AArch64/arm64-addr-type-promotion.ll
test/CodeGen/AArch64/arm64-collect-loh.ll