[ARM] Fixup the creation of VPT blocks
commitb2648080e6670a413271c29eb375a6479d68fbea
authorDavid Green <david.green@arm.com>
Thu, 5 Sep 2019 13:37:04 +0000 (5 13:37 +0000)
committerDavid Green <david.green@arm.com>
Thu, 5 Sep 2019 13:37:04 +0000 (5 13:37 +0000)
tree6140ef048504bfb0ab438c73e187dd5129564075
parent3ad084e5dd6b1f514d62b7543ac5d980c03e1e54
[ARM] Fixup the creation of VPT blocks

This attempts to just fix the creation of VPT blocks, fixing up the iterating,
which instructions are considered in the bundle, and making sure that we do not
overrun the end of the block.

Differential Revision: https://reviews.llvm.org/D67219

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371064 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MVEVPTBlockPass.cpp
test/CodeGen/Thumb2/mve-vpt-block.mir
test/CodeGen/Thumb2/mve-vpt-block2.mir
test/CodeGen/Thumb2/mve-vpt-block4.mir
test/CodeGen/Thumb2/mve-vpt-block5.mir
test/CodeGen/Thumb2/mve-vpt-block6.mir
test/CodeGen/Thumb2/mve-vpt-block7.mir
test/CodeGen/Thumb2/mve-vpt-block8.mir
test/CodeGen/Thumb2/mve-vpt-nots.mir